Providers¶
Tynex ships no hard-coded model IDs. Names, credentials, context windows, pricing, modalities, and thinking levels come from a shared catalog. The catalog is cached in ~/.tynex/agent/models.json, refreshed after 24 hours, and reused when the catalog service is unreachable.
Find a provider¶
tynex models # every catalog provider
tynex models --configured # only providers with credentials or a local endpoint
tynex models anthropic # models, limits, pricing, thinking levels
tynex models --configured is the quickest way to see what can run now.
Sign in¶
tynex login # OAuth, API key, or custom provider menu
tynex login anthropic # API key for a provider id
tynex login github-copilot # device flow
tynex logout [provider]
Credentials are stored in ~/.tynex/agent/auth.json. settings.apiKeys and provider environment variables are also supported. Resolution order is settings.apiKeys, auth.json, then the provider environment variable.
Common providers:
| Provider | Credentials |
|---|---|
| Anthropic | ANTHROPIC_API_KEY |
| OpenAI | OPENAI_API_KEY |
GOOGLE_API_KEY or GEMINI_API_KEY |
|
| xAI | XAI_API_KEY |
| DeepSeek | DEEPSEEK_API_KEY |
| Groq | GROQ_API_KEY |
| Mistral | MISTRAL_API_KEY |
| OpenRouter | OPENROUTER_API_KEY |
| Ollama | none; local endpoint |
| LM Studio | none; local endpoint |
| GitHub Copilot | tynex login github-copilot |
Custom OpenAI-compatible provider¶
Add one in ~/.tynex/agent/settings.json or .tynex/settings.json:
{
"providers": {
"my-llm": {
"api": "openai-completions",
"baseUrl": "https://my-llm.example.com/v1",
"apiKeyEnv": ["MY_LLM_API_KEY"],
"models": [
{
"id": "gpt-oss-120b",
"name": "gpt-oss-120b",
"contextWindow": 200000,
"maxTokens": 16384
}
]
}
}
}
Use tynex login and choose "Add custom provider" to write this shape interactively. Settings entries can also pin reasoning and thinkingLevels when the endpoint does not report them.
Model selection¶
Startup order is:
--model- The model stored in a resumed session
modelinsettings.json- The newest sign-in in
auth.json - A provider environment variable
Use --model provider/model-id, a unique partial id, or a glob. tynex models shows the exact ids. /model with no argument opens the provider and model pickers.
Local endpoints¶
Ollama and LM Studio list installed models from the local endpoint rather than the shared catalog. Start the endpoint, then run tynex models ollama or tynex models lmstudio. No API key is required for either.
Troubleshooting¶
tynex doctorchecks your config, credentials, catalog, shell, and workspace.- If a provider is missing, run
tynex modelsto refresh the catalog, thentynex models <provider>. - If a custom endpoint fails, verify
baseUrlends at the API root (usually/v1) and check theapivalue.