Implementation:AFK surf Open agent Config Json Schema
| Knowledge Sources | |
|---|---|
| Domains | Deployment, Configuration, Self_Hosting |
| Last Updated | 2026-10-25 00:00 GMT |
Overview
Concrete JSON config surface (template + schema) for self-hosting Open-Agent: a config.json derived from .docker/config.example.json and validated against .docker/schema.json.
Description
The self-host config is a single JSON file bind-mounted into the Open-Agent container at /app/config.json. The template (.docker/config.example.json) ships with empty defaults and a "$schema": "./schema.json" pointer. The schema (.docker/schema.json, 1022 lines) formally validates the config and covers: OAuth providers (GitHub, Google) with clientId/clientSecret; a mailer block with SMTP host/port/credentials and an enabled flag; a copilot block with an enabled toggle, multi-provider AI keys (providers.fal, providers.gemini, providers.openai, providers.perplexity, providers.anthropic, providers.morph), Vertex provider credentials (providers.geminiVertex, providers.anthropicVertex with GCP project/location/service-account), R2 storage (bucket, accountId, credentials), and integration keys (browserUse.key, e2b.key, unsplash.key). Fill in only the providers you intend to use; leave unused keys blank rather than removing them.
Usage
Copy config.example.json to config.json, open it in an editor with JSON Schema support (the $schema pointer enables validation/autocomplete), fill in OAuth secrets, mailer credentials, AI provider API keys, and storage/integration keys, then start the Docker stack.
Code Reference
Source Location
- Repository: Open-Agent
- File: .docker/config.example.json (L1-82); schema .docker/schema.json (1022 lines); documented in README.md (L49)
Signature
{
"$schema": "./schema.json",
"oauth": {
"providers.github": { "clientId": "", "clientSecret": "" },
"providers.google": { "clientId": "", "clientSecret": "" }
},
"mailer": {
"enabled": false,
"SMTP": { "host": "", "port": 587, "username": "", "password": "", "sender": "", "ignoreTLS": false }
},
"copilot": {
"enabled": true,
"providers.fal": { "apiKey": "" },
"providers.gemini": { "apiKey": "" },
"providers.openai": { "apiKey": "" },
"providers.perplexity": { "apiKey": "" },
"providers.anthropic": { "apiKey": "" },
"providers.morph": { "apiKey": "" },
"providers.geminiVertex": { "project": "", "location": "us-central1", "googleAuthOptions": { "credentials": {} } },
"providers.anthropicVertex": { "project": "", "location": "us-east5", "googleAuthOptions": { "credentials": {} } },
"storage": { "bucket": "", "provider": "cloudflare-r2", "config": { "accountId": "", "credentials": { "accessKeyId": "", "secretAccessKey": "" } } },
"browserUse": { "key": "" },
"e2b": { "key": "" },
"unsplash": { "key": "" }
}
}
Import
cp .docker/config.example.json ./config.json
# Edit ./config.json; the "$schema" pointer pulls in schema.json for validation.
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| oauth providers | object | GitHub/Google client IDs and secrets | |
| mailer | object | SMTP credentials; enabled toggles email | |
| copilot.providers.* | object | Per-provider API keys | |
| copilot.storage | object | Cloudflare R2 credentials | |
| copilot.browserUse/e2b/unsplash | object | Integration keys |
Outputs
| Name | Type | Description |
|---|---|---|
| config.json | file | Validated config consumed by the app container at /app/config.json |
Usage Examples
Minimal OpenAI-Only Config
{
"$schema": "./schema.json",
"oauth": { "providers.github": { "clientId": "", "clientSecret": "" }, "providers.google": { "clientId": "", "clientSecret": "" } },
"mailer": { "enabled": false, "SMTP": { "host": "", "port": 587, "username": "", "password": "", "sender": "", "ignoreTLS": false } },
"copilot": {
"enabled": true,
"providers.openai": { "apiKey": "sk-..." }
}
}