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.
Choose a provider
Section titled “Choose a provider”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:
export GRAFT_PROVIDER=anthropicexport GRAFT_API_KEY=<your key>export GRAFT_MODEL=<model>Point at an OpenAI-compatible endpoint
Section titled “Point at an OpenAI-compatible endpoint”For the openai wire format, set GRAFT_BASE_URL to point at OpenRouter, Fireworks, Groq, a LiteLLM proxy, a local server, or OpenAI itself:
export GRAFT_PROVIDER=openaiexport GRAFT_API_KEY=<your key>export GRAFT_MODEL=<model>export GRAFT_BASE_URL=<endpoint URL>Pass settings on the command line
Section titled “Pass settings on the command line”trail build --deep --provider <provider> --model <model> --api-key <key> --base-url <url>