本文へ移動

Claude Code

Caveat

Anthropic 製ターミナルコーディングエージェント。Caveat: Messages wire 未提供のため変換プロキシが必要。

注意: api.mithril.fund は Anthropic Messages API の wire(POST /v1/messages)をまだ提供していません(2026-09-15 実測 405)。Claude Code から使うには、Anthropic 形式を OpenAI 形式に変換するローカルプロキシ(LiteLLM など)を挟み、ANTHROPIC_BASE_URL をそのプロキシに向けます。詳細は Anthropic SDK のページ。

Setup

Shell
# Anthropic Messages is not served on api.mithril.fund (POST /v1/messages → 405).
# Run a translating proxy (LiteLLM, etc.), then point Claude Code at the proxy.
# The proxy calls OpenAI wire: https://api.mithril.fund/v1 with Bearer kc_pat_…

export OPENAI_BASE_URL="https://api.mithril.fund/v1"
export OPENAI_API_KEY="kc_pat_<your-token>"
# export ANTHROPIC_BASE_URL=http://127.0.0.1:4000   # local proxy
# export ANTHROPIC_API_KEY=anything                 # proxy holds the real token
# claude -p "Reply with exactly: OK"

The research gates (verification, scope, free quota) are identical to the cookie session; the token only removes the origin gate.

← All tools