Connect a client
Claude Code
Route Anthropic's Claude Code through MarkDB.
Claude Code speaks the Anthropic Messages API and lets you override its
endpoint with ANTHROPIC_BASE_URL. MarkDB serves /v1/messages and dispatches
it natively to any provider -- so you can run Claude Code against Gemini.
Install
npm i -g @anthropic-ai/claude-codeConfigure
Set the base URL and your MarkDB key, then choose a model:
export ANTHROPIC_BASE_URL=https://proxy.markdb.cloud
export ANTHROPIC_AUTH_TOKEN=mk_live_xxx
claude -p "create hello.txt with 'hi', then read it back" \
--model gemini-2.5-flash \
--dangerously-skip-permissionsModels
Use a gemini-* model to consolidate spend on Gemini, or a claude-* model to
route to Anthropic (requires an Anthropic credential on your tenant). MarkDB
picks the provider from the model name.
Verify
Run a multi-turn session (claude -p ... then claude -p --continue ...). The
Work log shows a single session, and tool calls
(Write, Read, ...) are captured as discrete tool_call / tool_result
events.