You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Maintaining multiple auth profiles on the same provider #893
i'm not sure this is something we'll support because it's tricky to then have to specify which auth to use for a given provider, loses a lot of simplicity
i recommend maybe using env vars for each project for the different keys? you can put an opencode.json in the folder of each and read from a different env var under apiKey: "{env:OPENROUTER_KEY_1}"
Oh, thank you, did not know that I could override the key within the config file, that works for my use-case, perhaps this needs a section in the documentation? As it was not clear initially to me this was possible.
Activity
thdxr commentedon Jul 12, 2025
i'm not sure this is something we'll support because it's tricky to then have to specify which auth to use for a given provider, loses a lot of simplicity
i recommend maybe using env vars for each project for the different keys? you can put an
opencode.jsonin the folder of each and read from a different env var underapiKey: "{env:OPENROUTER_KEY_1}"thdxr commentedon Jul 12, 2025
more info here https://x.com/thdxr/status/1943826969189089460
OneAbodFTW commentedon Jul 14, 2025
Oh, thank you, did not know that I could override the key within the config file, that works for my use-case, perhaps this needs a section in the documentation? As it was not clear initially to me this was possible.
jfpedroza commentedon Aug 1, 2025
Related to this. I would like to use Claude Pro for personal projects and use an Anthropic API key for projects. Is that supported?
Merge pull request anomalyco#893 from up2itnow0822/feat/agent-payment…
Proxy Den PostHog requests through /ow (anomalyco#893)