Skip to content
Unofficial community docs. Content pulled on 2026-10-24 from Trail-Code@d205ac3. For the latest, see the official repo.

Configure providers

The graft map is vendor-neutral. Only the LLM-written parts, from trail build --deep, go through your provider key. Settings keep their GRAFT_ names.

Set GRAFT_PROVIDER to one of:

Value Use it for
openai Any OpenAI-compatible endpoint
anthropic The native Anthropic API
litellm A LiteLLM gateway that speaks the OpenAI-compatible format
orcarouter An OrcaRouter gateway that speaks the OpenAI-compatible format

Then set your key and model:

Terminal window
export GRAFT_PROVIDER=anthropic
export GRAFT_API_KEY=<your key>
export GRAFT_MODEL=<model>

For the openai wire format, set GRAFT_BASE_URL to point at OpenRouter, Fireworks, Groq, a LiteLLM proxy, a local server, or OpenAI itself:

Terminal window
export GRAFT_PROVIDER=openai
export GRAFT_API_KEY=<your key>
export GRAFT_MODEL=<model>
export GRAFT_BASE_URL=<endpoint URL>
Terminal window
trail build --deep --provider <provider> --model <model> --api-key <key> --base-url <url>