FlatCompute × Claude Code — auto-configure
This file is generated by FlatCompute so Claude Code can bootstrap itself against your subscription with zero manual editing.
Environment
export FLATCOMPUTE_BASE_URL="<FLATCOMPUTE_BASE_URL>"
export FLATCOMPUTE_API_KEY="<FLATCOMPUTE_API_KEY>"
export FLATCOMPUTE_MODEL_ID="<FLATCOMPUTE_MODEL_ID>"
export FLATCOMPUTE_PLAN="<FLATCOMPUTE_PLAN>"
FLATCOMPUTE_API_KEYis never embedded here. Load it from your shell environment or your secret manager. Treat it like a password.
Claude Code config
{
"provider": "flatcompute",
"baseURL": "<FLATCOMPUTE_BASE_URL>",
"model": "<FLATCOMPUTE_MODEL_ID>",
"plan": "<FLATCOMPUTE_PLAN>",
"apiKeyEnv": "FLATCOMPUTE_API_KEY"
}
Health check
curl <FLATCOMPUTE_BASE_URL>/chat/completions \
-H "Authorization: Bearer ${FLATCOMPUTE_API_KEY}" \
-H "Content-Type: application/json" \
-d '{"model": "<FLATCOMPUTE_MODEL_ID>", "messages": [{"role": "user", "content": "ping"}]}'
You are ready to run Claude Code on FlatCompute.