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
function glaude() {
ANTHROPIC_BASE_URL="$BACKEND_AI_GO_API_BASE" \
ANTHROPIC_AUTH_TOKEN="$BACKEND_AI_GO_API_KEY" \
ANTHROPIC_DEFAULT_OPUS_MODEL="gemini-3-pro-preview" \
ANTHROPIC_DEFAULT_SONNET_MODEL="gemini-3-flash-preview" \
ANTHROPIC_DEFAULT_HAIKU_MODEL="gemini-2.5-flash" \
claude
}`
Local Model: Currently stopped (disabled).
Data Flow Map: Shows a normal/active connection.
The issue occurs when I use the alias "glaude" that I've set up. I am receiving the following error message:
API Error: 400 {"type":"error","error":{"type":"api_error","message":"Invalid request sent to backend"}}
Could you please check if there is an error in my configuration or if I missed a specific step for the alias setup?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am writing to request assistance with an error I’m encountering while using the Gemini API.
I have followed the official guide to register my Gemini API Key and open the necessary ports. My current status is as follows:



in ~/.zshrc,
`export BACKEND_AI_GO_API_BASE="http://localhost:39080/anthropic"
export BACKEND_AI_GO_API_KEY=""
function glaude() {
ANTHROPIC_BASE_URL="$BACKEND_AI_GO_API_BASE" \
ANTHROPIC_AUTH_TOKEN="$BACKEND_AI_GO_API_KEY" \
ANTHROPIC_DEFAULT_OPUS_MODEL="gemini-3-pro-preview" \
ANTHROPIC_DEFAULT_SONNET_MODEL="gemini-3-flash-preview" \
ANTHROPIC_DEFAULT_HAIKU_MODEL="gemini-2.5-flash" \
claude
}`
Local Model: Currently stopped (disabled).
Data Flow Map: Shows a normal/active connection.
The issue occurs when I use the alias "glaude" that I've set up. I am receiving the following error message:

API Error: 400 {"type":"error","error":{"type":"api_error","message":"Invalid request sent to backend"}}
Could you please check if there is an error in my configuration or if I missed a specific step for the alias setup?
I look forward to your guidance. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions