r/opencode • u/rstoicme • 8d ago
Need help with connecting opencode go sub to claude code harness
/r/ClaudeCode/comments/1xzi21t/need_help_with_connecting_opencode_go_sub_to/
1
Upvotes
r/opencode • u/rstoicme • 8d ago
2
u/oyren-ai 8d ago
the opencode docs have a claude code page under their harnesses section for this. in claude code's settings file, add an env block with ANTHROPIC_BASE_URL set to the go anthropic endpoint listed there and ANTHROPIC_AUTH_TOKEN set to your go key. leave off /v1/messages, use the auth token variable not ANTHROPIC_API_KEY, run /logout if you're signed in to a claude account, then check /status.
1
u/mwilson_9309 6d ago
If that setup still fails, what does /status report, and what exact error do you get? That would narrow down whether it's the endpoint, auth, or something else.