Repository navigation
Unable to setup API key and connect it with claude #20081
Unanswered
Hunter1623
asked this question in
Q&A
Replies: 1 comment 1 reply
|
The key never reaches OmniRoute. OmniRoute reads the key from curl http://localhost:20128/v1/models -H "Authorization: Bearer YOUR_OMNIROUTE_KEY"For Claude Code, put the same key in {
"env": {
"ANTHROPIC_BASE_URL": "http://localhost:20128",
"ANTHROPIC_AUTH_TOKEN": "YOUR_OMNIROUTE_KEY"
}
}No |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I created an API key on OmniRoute dashboard, also added providers, but when I am trying to connect the API key to from the dashboard to my terminal on linux, using the command
curl http://localhost:20128/v1/models -H "API KEY"
it shows the following error
{"error":{"message":"Authentication required","type":"invalid_api_key","code":"invalid_api_key"}}
All reactions