Skip to main content
The CLI calls a model provider that you own. agentgg init saves the credential to ~/.agentgg/config.json. Pass flags on agentgg scan to use a different provider for one run instead. See One-off credentials for the full flag list.
Run agentgg init again to add a second provider. It keeps the credentials you already saved, and it makes the provider you just added the new default.

Anthropic

Credential: an API key, or an OAuth token from a Claude Pro or Max plan.

OpenAI

Credential: an API key.

Ollama

Credential: the local server URL. The default is http://localhost:11434.

AWS Bedrock

Credential: AWS credentials from the standard chain (environment variables, a profile, SSO, or an IAM role), plus a region.

Google Vertex AI

Credential: Google Application Default Credentials (ADC), plus a GCP project ID.

OpenRouter

Credential: an API key.

Switch the default provider

The config holds every provider you set up, and marks one of them the default. A scan uses the default unless you override it for that run.
This prints the default, every configured provider, and its model. Secrets are masked.
The first command makes openai the default. The second sets the model for that provider. --model needs --provider.
agentgg config only switches between providers you already set up, and it changes no credentials. To add a provider, run agentgg init, which also makes that provider the default.

One-off credentials

Pass these flags to agentgg scan to run once with a different provider or credential. The CLI does not save these values to ~/.agentgg/config.json. A flag that does not apply to the active provider is a hard error, not a silent ignore. To change the saved default instead of passing a flag every run, see Switch the default provider.