Archon always trying to use OpenAI, even when I set API to Ollama or OpenRouter

super weird, no clue what’s going on. I’ve been trying to use Ollama but that gave me the error, so I tried OpenRouter and that gives me this error, so I switched to fully OpenAI API keys and I still get this error, no matter how many times I reset the environment variables:

File "../venv/lib/python3.13/site-packages/openai/_base_client.py", line 1644, in _request
    raise self._make_status_error_from_response(err.response) from None
openai.AuthenticationError: Error code: 401 - {'error': {'message': 'No auth credentials found', 'code': 401}}
During task with name 'advisor_with_examples' and id '967be1d2-532a-1a35-5b86-3a41a420ccd1'

It feels like the .env settings aren’t being used, but in env_vars.json it’s clearly being updated with my new profiles.

Really eager to get this working, thanks for any help.

1 Like

I’ve seen a couple people with this issue but struggling to reproduce it myself. I’m still working on that and I certainly want to get to the bottom of it asap!

1 Like