ダッシュボード
利用の概要 — 直近 24 時間の呼び出し記録と、前払いクレジットの残高から。
ダッシュボードを見るにはサインインしてください。
サインイントークン支出
前払いクレジット—
現在の付与分から消費した額(無料枠は $0)
総トークン
入力 + 出力—
直近 24 時間
リクエスト
—
直近 24 時間
平均レイテンシ
—
完了した呼び出し、直近 24 時間
リクエストの推移
1 時間ごとの呼び出し数(直近 24 時間)
トークンの内訳
入力と出力、モデル別(直近 24 時間)
- 入力 —
- 出力 —
ツールを接続
クライアントを選ぶと設定ブロックが出ます。下の「API キー」でトークンを発行すると、このページを開いている間はコピーに実トークンが入ります(表示はマスク)。
# 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"
注意: api.mithril.fund は Anthropic Messages API の wire(POST /v1/messages)をまだ提供していません(2026-09-15 実測 405)。Claude Code から使うには、Anthropic 形式を OpenAI 形式に変換するローカルプロキシ(LiteLLM など)を挟み、ANTHROPIC_BASE_URL をそのプロキシに向けます。詳細は Anthropic SDK のページ。
export KOTOBA_API_BASE="https://api.mithril.fund/v1"
export KOTOBA_API_TOKEN="kc_pat_<your-token>"
# test the connection
codex exec "Reply with exactly: OK"
OpenAI 互換 — ベース URL は /v1 込み。
Base URL: https://api.mithril.fund/v1
API Key: kc_pat_<your-token>
Model ID: qwen3.8-flash-next-whitehacker
Provider ID: kotobacloud (lowercase)
Base URL: https://api.mithril.fund/v1
API Key: kc_pat_<your-token>
Model ID: qwen3.8-flash-next-whitehacker
~/.config/opencode/opencode.json:
{
"provider": {
"kotobacloud": {
"baseUrl": "https://api.mithril.fund/v1",
"apiKey": "kc_pat_<your-token>",
"models": {"qwen3.8-flash-next-whitehacker": {}}
}
}
}
reasoning モデルは temperature 400 を返すことがあります (既知の注意点)。
export OPENAI_API_BASE="https://api.mithril.fund/v1"
export OPENAI_API_KEY="kc_pat_<your-token>"
# the openai/ prefix stacks on our model id
aider --model openai/qwen3.8-flash-next-whitehacker
# ~/.hermes/config.yaml (or a profile's config.yaml)
model:
provider: kotoba
default: qwen3.8-flash-next-whitehacker
# no max_tokens: hermes ignores it; the edge's default output budget is 32,768
providers:
kotoba:
api: https://api.mithril.fund/v1 # literal: a KOTOBA_API_BASE that already ends in /v1 would become /v1/v1 (405)
key_env: KOTOBA_API_TOKEN
transport: chat_completions
discover_models: true
request_timeout_seconds: 900
stale_timeout_seconds: 900
models:
qwen3.8-flash-next-whitehacker:
context_length: 98304 # 131,072 slot - 32,768 output budget
custom:
# a named provider runs under this label at runtime — these are the timeouts that apply
request_timeout_seconds: 900
stale_timeout_seconds: 900
compression:
# the answer arrives whole; a summary can take minutes under load
context_timeout_seconds: 900
context_total_ceiling_seconds: 900
auxiliary:
compression:
provider: kotoba # REQUIRED with a bare base_url: without it (or key_env) hermes resolves the task to "auto" = the main model
key_env: KOTOBA_API_TOKEN
model: qwen/qwen3.8-flash # the blue route: shares no slot with your session
base_url: https://api.mithril.fund/v1
reasoning_effort: none
timeout: 900
# optional, off-edge: where the summary goes when THIS edge is silent (needs an OpenRouter key in .env).
# key_env is required — the stall retry pins the entry as-is and 401s without it. :free SKUs only.
fallback_chain:
- provider: openrouter
model: qwen/qwen3.8-27b:free
key_env: OPENROUTER_API_KEY
timeout: 180
- provider: openrouter
model: nex-agi/nex-n2.5-mini:free
key_env: OPENROUTER_API_KEY
timeout: 120
title_generation:
provider: kotoba
key_env: KOTOBA_API_TOKEN
model: qwen/qwen3.8-flash
base_url: https://api.mithril.fund/v1
reasoning_effort: none
timeout: 120
fallback_providers:
- provider: kotoba
model: qwen/qwen3.8-flash # same edge; another provider's reasoning_details would be replayed here
base_url: https://api.mithril.fund/v1
api_mode: chat_completions
# ~/.hermes/.env — the token is the only thing read from the environment
KOTOBA_API_TOKEN=kc_pat_<your-token> # issue at https://console.mithril.fund/account (shown once)
OPENROUTER_API_KEY=sk-or-<optional> # only for auxiliary.compression.fallback_chain; omit the chain without it
# `personal API token refused: token-unknown` = the token in THIS machine's .env is not in the
# account's registry (issued elsewhere, or before the registry): paste a current one here.
# profiles: start them as `hermes -p <profile>` or with HERMES_HOME=~/.hermes/profiles/<profile>,
# not via the sticky `hermes profile use` (subprocesses then write to the default profile)
hermes chat -Q --oneshot -q "Reply with exactly: OK"
context_length は 98,304(131,072 の slot − 既定出力 32,768): hermes は max_tokens を送らない(config では課せない)ので、出力分を窓から引いて宣言する。timeout は 900 秒: 応答は完了後にまとめて届き、edge は最大 840 秒待つ。compaction の要約は blue route(qwen/qwen3.8-flash)へ: 自分のセッションと slot を取り合わない。要約を red model に向けない: red route が edge 側で 1 時間詰まった 2026-09-18(ADR 2609181900)、そうしていた環境は compaction を毎回失い(120 秒無出力)、blue は終始 3.6 秒で答えていた。auxiliary.compression.fallback_chain(off-edge の :free SKU、key_env 必須)は edge 自体が沈黙したときの逃げ道 —— 要約は素の文章なので他 provider でも transcript を汚さない。main の fallback は同じ edge に: 他 provider の reasoning_details がここへ replay されて 400 になる。auxiliary の title 生成は 1 回ごとに無料枠を 1 件使う(`auxiliary.title_generation.enabled: false` で止められる)。
docker run -d -p 3000:8080 \
-e OPENAI_API_BASE_URL="https://api.mithril.fund/v1" \
-e OPENAI_API_KEY="kc_pat_<your-token>" \
ghcr.io/open-webui/open-webui:main
# then open http://localhost:3000 and pick the model
Base URL: https://api.mithril.fund/v1
API Key: kc_pat_<your-token>
Model: qwen3.8-flash-next-whitehacker
Cursor Pro が必要です。リクエストは到達しますが、返信が描画されない Cursor 側の制限が報告されています。
from openai import OpenAI
client = OpenAI(
base_url="https://api.mithril.fund/v1",
api_key="kc_pat_<your-token>",
)
r = client.chat.completions.create(
model="qwen3.8-flash-next-whitehacker",
messages=[{"role": "user", "content": "Reply with exactly: OK"}],
)
API キー
接続トークンの発行と失効。表示は一度だけです。
CLI / IDE から使う
ローカルの CLI / IDE エージェント用の接続トークンを発行します。表示は一度だけです。
OpenAI 互換クライアント向け: KOTOBA_API_BASE=https://api.mithril.fund/v1 と KOTOBA_API_TOKEN=kc_pat_…(トークンは発行後に一度だけ表示)。