Claude Code: Allow different models #293
Copy link
Copy link
Closed
Description
When you add Claude Code support, can you please allow models other than Anthropic's? For example, GLM-5, Kimi K2, and Minimax M2.5 all support Claude Code by providing a different API URL and token as environment variables (ANTHROPIC_AUTH_TOKEN and ANTHROPIC_BASE_URL). Some of the models (mostly GLM-5) have been trained specifically for Claude Code and don't perform as well in OpenCode.
I imagine you could have config settings for "alternative Claude Code providers" where the keys could be entered, and the UI could show those provider's models in the list of available models.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Activity
gsynuh commentedon Mar 7, 2026
If T3 spawns claude and communicates via stdio/acp whatever, shouldn't that be your responsibility (ie: setting up claude to go through proxies/etc) ?
Daniel15 commentedon Mar 7, 2026
Mng-dev-ai commentedon Mar 7, 2026
no need to spawn two instances of Claude Code, you can just build the env you pass to the agent sdk based on the model id you select so for example if it's GLM5 set ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN to ZAI and so on
I've been doing that in my app for a while https://github.com/Mng-dev-ai/claudex/blob/main/backend/app/services/claude_agent.py#L217
gsynuh commentedon Mar 7, 2026
@Mng-dev-ai Oh that's good to know then. (did not play around with claude as much as codex tbh) thank you
Frankstar commentedon Mar 24, 2026
i love my kimi k2.5 cli - but it would be superb to use t3.code
juliusmarminge commentedon Jun 5, 2026
This should be possible by configuring your instance under Provider settings:
Some WIP docs here as well: https://github.com/pingdotgg/t3code/blob/main/docs/providers/claude.md. Feel free to make additions there to clarify any uncertainties
Daniel15 commentedon Jun 5, 2026
@juliusmarminge That looks like it could work. If it's just setting the
HOMEenvironment variable then won't that break things if CLAUDE has to run scripts that use$HOME?In that UI in your screenshot, I think it'd be useful to add options for
ANTHROPIC_AUTH_TOKENandANTHROPIC_BASE_URLin addition toHOME.juliusmarminge commentedon Jun 5, 2026
You can set any env var
Daniel15 commentedon Jun 5, 2026
OK, - that's useful. I assume you can add multiple Claude environments too. Thanks!
Merge branch 'review-mcp/codex-b965-stop' — superseded by main's ping…
backend: consume the SDK's typed PendingUserInput (pingdotgg#293) — t…
t3code: commit first-turn bootstrap before the ACK; consume the typed…
t3code backend: a declared check that cannot be shortened by a flake,…