Confused on setting up claude in VS code #1264
Replies: 3 comments 2 replies
|
The port and token go in VS Code's settings, not the Admin UI. The Admin UI sets them on the server side; the extension needs its own matching copy. Open VS Code settings JSON (Ctrl+Shift+P → "Preferences: Open User Settings (JSON)") and add: "claudeCode.disableLoginPrompt": true,
"claudeCode.environmentVariables": [
{ "name": "ANTHROPIC_BASE_URL", "value": "http://localhost:8082" },
{ "name": "ANTHROPIC_AUTH_TOKEN", "value": "freecc" },
{ "name": "CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY", "value": "1" }
]The one that stops the login prompt is Two things have to match your server: the port must be the one from your Then run To confirm it worked, keep the |
|
No, drop the { "name": "ANTHROPIC_BASE_URL", "value": "http://127.0.0.1:8082" }
The token is yours to pick, nothing issues it to you. In the Admin UI it's the API/CLI Auth Token field under Runtime (that's That field is masked in the UI, and changing it needs a server restart, so after you hit Apply, restart To confirm it worked, send one message from the extension and watch the |




No, drop the
/adminpart.ANTHROPIC_BASE_URLis just the server root:{ "name": "ANTHROPIC_BASE_URL", "value": "http://127.0.0.1:8082" }/adminis only the settings page you open in the browser. The proxy serves the API at the root, so with/adminon the end the extension ends up callinghttp://127.0.0.1:8082/admin/v1/messagesand that 404s. The only thing that log line tells you is the port number.The token is yours to pick, nothing issues it to you. In the Admin UI it's the API/CLI Auth Token field under Runtime (that's
ANTHROPIC_AUTH_TOKEN), and it ships withfreeccas the default. So either leave it asfreeccand putfreeccin your settings JSON, or type any random string there and c…