Connect a provider and open chat
Connect a provider and open chat
Section titled “Connect a provider and open chat”Outcome: Provider-backed chat opens from the shell, proving credentials and routing work.
Prerequisites:
gormesinstalled; an API key for one of: OpenAI, Anthropic, DeepSeek, Groq, OpenRouter, OpenAI Codex.
-
Add a provider credential
Terminal window gormes auth add openai --api-key sk-...Replace
openaiwith your provider id (anthropic,deepseek,groq,openrouter,codex, …). The key is written to~/.gormes/.env, never echoed back. -
Confirm auth status
Terminal window gormes auth listYou should see a row with
auth_type=api_keyandstatus=ok. -
Start chat
Terminal window gormes chatThe default provider/model resolves from your config.
Verify
Section titled “Verify”gormes chat -q "say hi in three words"Expected output: a short model reply on stdout, then the query exits with status 0.
Troubleshooting
Section titled “Troubleshooting”Not Found: model 'xxx' not found→ The configured model is not available on this provider. Rungormes setup model, or set the model withgormes config set hermes.model <id>.accepts 1 arg(s), received 0→gormes auth addneeds the provider name. Re-rungormes auth add <provider> --api-key ....- Auth
status=invalidorstatus=missing→ See provider setup.