AgentSwarm supports two AI providers out of the box: OpenAI Codex and Anthropic Claude. All provider credentials — API keys, base URL overrides, and GitHub tokens — are configured through the Settings UI, not inDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/coretracker/agentswarm/llms.txt
Use this file to discover all available pages before exploring further.
.env. This keeps secrets out of your filesystem and allows credentials to be rotated without restarting the stack.
Where Credentials Live
Provider credentials are stored in the AgentSwarm database under write-only semantics: once saved, raw key values are never returned by the API. The Settings response only tells you whether a credential is configured (openaiApiKeyConfigured: true). To replace a key, simply save a new value; to remove it, use the corresponding clear flag (clearOpenAiApiKey, clearAnthropicApiKey, or clearGithubToken).
All credential endpoints require the
settings:edit permission scope. Admin users have this scope by default.OpenAI / Codex Setup
Obtain an OpenAI API key
Visit platform.openai.com/api-keys and create a new secret key. Copy it — you will only see it once.
Open AgentSwarm Settings and enter your API key
Sign in to AgentSwarm, navigate to Settings, and paste the key into the OpenAI API Key field. Save the form. The
openaiApiKeyConfigured flag will flip to true.Set the default Codex model
Choose a
The default model applied to new tasks is
codexDefaultModel from the available options:| Value | Label |
|---|---|
gpt-5.4 | GPT-5.4 |
o3 | o3 |
o4-mini | o4-mini |
o3-mini | o3-mini |
gpt-4.1 | GPT-4.1 |
gpt-4o | GPT-4o |
gpt-5.4.Set the default reasoning effort
Choose a
codexDefaultEffort value. Codex natively supports three reasoning effort levels:| Value | Behaviour |
|---|---|
low | Faster, lower token usage. Best for simple or well-scoped tasks. |
medium | Balanced speed and reasoning depth. |
high | Maximum reasoning depth. Best for complex tasks that require planning across many files. |
Anthropic / Claude Setup
Obtain an Anthropic API key
Visit console.anthropic.com and create an API key under your workspace.
Open AgentSwarm Settings and enter your API key
Navigate to Settings in AgentSwarm and paste the key into the Anthropic API Key field. Save the form. The
anthropicApiKeyConfigured flag will flip to true.Set the default Claude model
Choose a
The default model applied to new tasks is
claudeDefaultModel from the available options:| Value | Label |
|---|---|
claude-opus-4-5 | Claude Opus 4 |
claude-sonnet-4-5 | Claude Sonnet 4.5 |
claude-sonnet-4 | Claude Sonnet 4 |
claude-haiku-3-5 | Claude Haiku 3.5 |
claude-sonnet-4-5.Set the default reasoning effort
Choose a
claudeDefaultEffort value. Claude supports four effort levels — including max, which is Claude-only:| Value | Behaviour |
|---|---|
low | Maps to a low thinking budget. Fastest response, least reasoning. |
medium | Moderate thinking budget. |
high | Large thinking budget. Suitable for complex multi-step tasks. |
max | Leaves the thinking budget unset, allowing the model to use as much as needed. Claude-only. |
Per-Task Model Override
When creating or editing a task, you can override the default model by settingmodelOverride. This lets you run a specific task at a higher or lower model tier than the system default without changing the global setting. If modelOverride is null or omitted, the task inherits codexDefaultModel or claudeDefaultModel from Settings.
Codex Auth Profiles
Codex tasks can authenticate with OpenAI using one of three credential sources, controlled bycodexCredentialSource on the task:
auto
AgentSwarm automatically selects the best available credential source. Uses the user’s personal Codex auth JSON if configured; falls back to the global API key.
profile
Uses the requesting user’s personal
codexAuthJson credential. Each user can configure their own Codex authentication JSON from their profile settings (UpdateAuthProfileInput.codexAuthJson). Sessions are invalidated when the auth JSON is updated.global
Uses the shared
openaiApiKey configured in Settings. All tasks using this source draw from the same key regardless of which user created the task.codexAuthJsonConfigured flag on the user’s auth session indicates whether a personal Codex auth JSON is stored. To clear it, send clearCodexAuthJson: true in an UpdateAuthProfileInput request.
GitHub Token
A GitHub personal access token is also configured in Settings (not in.env). It is used for:
- Importing tasks from GitHub issues and pull requests
- Posting status updates back to GitHub when
syncStatusEnabledis on for a repository - GitHub webhook secret validation
clearGithubToken: true via the credentials API or use the corresponding UI control.
Clearing Credentials
To remove a credential without replacing it, use the clear flags available inUpdateCredentialSettingsInput:
PATCH /api/settings/credentials request (requires settings:edit). Only the flags you include are acted on; omitting a flag leaves the corresponding credential unchanged.