Skip to main content
Claude Code is Anthropic’s terminal agent. It speaks the Anthropic Messages API, which Triw implements, so it runs against Triw with a base URL and a token.

Requirements

Install

Point it at Triw

Claude Code reads two variables: the endpoint and the credential.
Persist it per user so every new shell inherits it:
~/.claude/settings.json
The base URL is the host only — do not append /v1. Claude Code adds /v1/messages itself.

Choose a model

List what your key may use:
Inside a session, /model switches models and /status shows the resolved endpoint and account.

Verify

Then confirm the request landed: Triw console → Logs. A row with your key and model means the routing works.

Troubleshooting

Uninstall: delete ~/.claude plus the binary reported by which claude (native installer) or npm uninstall -g @anthropic-ai/claude-code.