What is gptme?
gptme is an open-source terminal assistant that drives shell, file and tool actions for you. It speaks the OpenAI protocol against any provider, so a single Tokonomix entry opens 130+ models from one key.
- Runs shell commands, edits files and uses tools from a terminal chat.
- Custom providers go in a
[[providers]]block in~/.config/gptme/config.toml. - Also reads
OPENAI_BASE_URLas an environment fallback. - Open source; provider-agnostic.
Why route gptme through Tokonomix?
- One provider entry, 130+ models — pick
tokonomix-consensusor any direct slug. - Let
tokonomix-consensusdouble-check an answer before gptme acts on it; a fast slug for routine turns. - Per-call spend caps bound a tool-using session; region / origin routing for compliance.
- Reference your key from an environment variable, not the config file.
Connect Tokonomix in config.toml
Add a [[providers]] block with the Tokonomix base_url, your api_key and a default_model — then select the model on the command line.
# ~/.config/gptme/config.toml
[[providers]]
name = "tokonomix"
base_url = "https://tokonomix.ai/api/v1"
api_key = "tok_live_your-key"
default_model = "anthropic/claude-sonnet-4-6"
# Opt-in (planning/review only, no tool-calling): default_model = "tokonomix-consensus"
# then: gptme --model tokonomix/anthropic/claude-sonnet-4-6 "..."Verify it works
- Save
config.toml(or exportOPENAI_BASE_URL) and start gptme with the Tokonomix model. - Ask it for a small task and let it run.
- Confirm the call and token usage in your Tokonomix dashboard.