Roteiro runs no model in its own process except OCR (ADR-0033). Chat, spec draft, review --llm, embeddings, image description and transcription go to
the provider you name with [provider] base_url — Ollama, llama-server,
LM Studio, or a hosted API — and [models] holds that provider's model ids. See
docs/MODEL_SETUP.md for a working setup.
A hosted base_url sends repository content to that host, and Roteiro says so
on every run. There are two ways to authenticate.
With an API key. Put it in the environment — never in a config file:
export ROTEIRO_PROVIDER_API_KEY=sk-ant-… # PowerShell: $env:ROTEIRO_PROVIDER_API_KEY = "sk-ant-…"
With OAuth (enterprise), through Anthropic's ant CLI. Roteiro runs a
command you name to get a fresh access token (ADR-0032), so no long-lived key is
stored anywhere.
ant:# macOS
brew install anthropics/tap/ant
# Windows (PowerShell) — x64; use windows_arm64 on Arm. VERSION from github.com/anthropics/anthropic-cli/releases
$v = "2.9.0"
Invoke-WebRequest "https://github.com/anthropics/anthropic-cli/releases/download/v$v/ant_${v}_windows_amd64.zip" -OutFile ant.zip
Expand-Archive ant.zip -DestinationPath "$env:LOCALAPPDATA\Programs\ant"
# then add %LOCALAPPDATA%\Programs\ant to PATH and open a new terminal
# Linux / WSL — VERSION from github.com/anthropics/anthropic-cli/releases
VERSION=2.9.0
curl -fsSL "https://github.com/anthropics/anthropic-cli/releases/download/v${VERSION}/ant_${VERSION}_$(uname -s | tr A-Z a-z)_$(uname -m | sed -e s/x86_64/amd64/ -e s/aarch64/arm64/).tar.gz" \
| sudo tar -xz -C /usr/local/bin ant
# Or from source (Go 1.25+)
go install github.com/anthropics/anthropic-cli/v2/cmd/ant@latest
--no-browser —
and check which organisation and workspace the token belongs to:ant auth login
ant auth status
~/.roteiro/config.toml
(Windows: %USERPROFILE%\.roteiro\config.toml). token_command is ignored
in a project's roteiro.toml, because a committed command would run code from
any repository you clone:[provider]
base_url = "https://api.anthropic.com/v1"
token_command = ["ant", "auth", "print-credentials", "--access-token"]
[provider.headers]
anthropic-beta = "oauth-2025-04-20" # Anthropic requires this beside an OAuth token
[models]
generative = "claude-sonnet-5-5"
ROTEIRO_PROVIDER_API_KEY unset — when set, it wins over the
command. Always keep --access-token: without it ant prints JSON, which
Roteiro refuses. A token is reused for five minutes and fetched again when the
provider answers 401.Other providers take the same shape with their own command: Google Vertex AI
["gcloud", "auth", "print-access-token"]; Azure / Microsoft Foundry
["az", "account", "get-access-token", "--resource", "<resource>", "--query", "accessToken", "-o", "tsv"];
a corporate gateway, its credential helper.
Then start the server over every configured workspace — see Ask:
roteiro serve --scope all
roteiro model pull installs| Model | Size | Best for |
|---|---|---|
ocrs-text | ~12 MB | Pure-Rust OCR — literal text in screenshots (image-ocr). Horizontal text only: rotated text (margin stamps, vertical labels) is silently not read. |