Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.
Global Configuration and Platforms
Global config
GET /api/config- returns the current V2 config payload
POST /api/config- accepts a partial object, deep-merges it with current config, validates it through
V2Config.from_payload, then persists it - use for platform credentials, enabled platforms, primary platform, runtime defaults, agent defaults, UI config, remote-access provider settings, update policy, and global toggles
- the handler only persists and (for
remote_access) reconciles the cloudflared tunnel; running platform adapters keep using their previous credentials and transport until a restart. Plan avibe restart --delay-seconds 60after any credential,proxy_url, or transport-level change.
- accepts a partial object, deep-merges it with current config, validates it through
Important config payload shape:
{
"platform": "slack",
"platforms": {
"enabled": ["slack", "discord", "telegram", "lark", "wechat"],
"primary": "slack"
},
"mode": "self_host",
"version": "v2",
"slack": {
"bot_token": "xoxb-...",
"app_token": "xapp-...",
"signing_secret": "...",
"team_id": "T...",
"team_name": "...",
"app_id": "A...",
"require_mention": false,
"disable_link_unfurl": false,
"proxy_url": null
},
"discord": {
"bot_token": "...",
"application_id": "...",
"require_mention": false,
"thread_auto_archive_minutes": 10080,
"guild_allowlist": null,
"guild_denylist": null,
"proxy_url": null
},
"telegram": {
"bot_token": "123:abc",
"require_mention": true,
"forum_auto_topic": true,
"use_webhook": false,
"webhook_url": null,
"webhook_secret_token": null,
"allowed_chat_ids": null,
"allowed_user_ids": null,
"proxy_url": null
},
"lark": {
"app_id": "...",
"app_secret": "...",
"require_mention": false,
"domain": "feishu",
"proxy_url": null
},
"wechat": {
"bot_token": "...",
"base_url": "https://ilinkai.weixin.qq.com",
"cdn_base_url": "https://novac2c.cdn.weixin.qq.com/c2c",
"require_mention": false,
"proxy_url": null
},
"runtime": {
"default_cwd": "/path/to/workdir",
"log_level": "INFO",
"resource_governance": {
"mode": "auto",
"agent_pids_max": 4096
}
},
"agents": {
"opencode": {
"enabled": true,
"cli_path": "opencode",
"auto_update": true,
"default_agent": null,
"default_reasoning_effort": null,
"error_retry_limit": 1
},
"claude": {
"enabled": true,
"cli_path": "claude",
"auto_update": true,
"idle_timeout_seconds": 600
},
"codex": {
"enabled": true,
"cli_path": "codex",
"auto_update": true,
"idle_timeout_seconds": 600
}
},
"ui": {
"setup_host": "127.0.0.1",
"setup_port": 5123,
"open_browser": true
},
"remote_access": {
"provider": "vibe_cloud",
"vibe_cloud": {
"enabled": false,
"backend_url": "https://avibe.bot",
"public_url": "",
"instance_id": "",
"client_id": "",
"issuer": "",
"authorization_endpoint": "",
"token_endpoint": "",
"jwks_uri": "",
"redirect_uri": "",
"tunnel_token": "",
"instance_secret": "",
"session_secret": "",
"cloudflared_path": "",
"transport_protocol": "auto",
"auto_recovery": true,
"optimization_profile": "balanced",
"edge_ip_version": "4",
"edge_bind_address": "",
"dev_login_hint": ""
}
},
"update": {
"auto_update": true,
"check_interval_minutes": 60,
"idle_minutes": 30,
"notify_admins": true
},
"ack_mode": "typing",
"language": "en",
"show_duration": false,
"include_time_info": true,
"include_user_info": true,
"reply_enhancements": true
}
Discord server access belongs to /api/settings, not /api/config. Store enabled
servers under guilds, next to channel settings:
{
"platform": "discord",
"guilds": {
"900740769198006293": { "enabled": true }
},
"channels": {
"1067738479234138202": { "enabled": true }
}
}
When switching the active platform, update platforms.primary and make sure platforms.enabled contains the new primary. Keep the legacy platform field aligned for readability, but platforms.primary is the real multi-platform source of truth.
Per-platform fields worth knowing about:
- every platform inherits
proxy_urlfrom the sharedBaseIMConfig. Set it when the host machine cannot reach the upstream API directly. Accepts standard HTTP/HTTPS proxy URLs and anysocks*://URL (socks4,socks4a,socks5,socks5h). SOCKS variants route throughaiohttp_socks. slack.disable_link_unfurlsuppresses link previews when posting messages.discord.thread_auto_archive_minutesmust be one of60,1440,4320, or10080.discord.guild_allowlist/guild_denylistare legacy input lists; current runtime server access lives in/api/settingsunderguilds.telegram.forum_auto_topicenables automatic topic creation in forum chats;use_webhookpluswebhook_url/webhook_secret_tokenswitches Telegram delivery to the webhook transport.telegram.allowed_chat_ids/allowed_user_idsrestrict which chats and users Telegram will respond to.wechat.cdn_base_urlcontrols the CDN host used for fetching WeChat media; the defaultnovac2c.cdn.weixin.qq.comis the official c2c CDN.update.auto_update,check_interval_minutes, andidle_minutescontrol unattended upgrades;notify_adminsposts the upgrade announcement to bound admins.agents.<backend>.auto_update(defaulttrue) installs a newer backend CLI release on the same check onceidle_minuteshave passed without a message and no turn is using that backend; messages that arrive during the install run afterwards. Each release is tried once unattended, andcheck_interval_minutes = 0stops it as well.ui.setup_host,setup_port, andopen_browserconfigure the local Web UI server; changing host or port requiresPOST /api/ui/reload.
Secret-bearing config fields that you should not print:
slack.bot_tokenslack.app_tokenslack.signing_secretdiscord.bot_tokentelegram.bot_tokentelegram.webhook_secret_tokenlark.app_id(treat as a sensitive identifier)lark.app_secretwechat.bot_tokengateway.workspace_tokengateway.client_secretremote_access.vibe_cloud.tunnel_tokenremote_access.vibe_cloud.instance_secretremote_access.vibe_cloud.session_secretremote_access.vibe_cloud.client_id- any
proxy_urlvalue that embeds credentials such asuser:pass@host
Platform discovery and validation
GET /api/slack/manifest- returns Slack app manifest JSON for setup
POST /api/slack/auth_test- payload:
{"bot_token": "xoxb-..."}
- payload:
POST /api/slack/channels- payload:
{"bot_token": "xoxb-...", "browse_all": false}
- payload:
POST /api/discord/auth_test- payload:
{"bot_token": "..."}
- payload:
POST /api/discord/guilds- payload:
{"bot_token": "..."}
- payload:
POST /api/discord/channels- payload:
{"bot_token": "...", "guild_id": "..."}
- payload:
POST /api/telegram/auth_test- payload:
{"bot_token": "123:abc"}
- payload:
POST /api/telegram/chats- payload:
{"include_private": false}
- payload:
POST /api/lark/auth_test- payload:
{"app_id": "...", "app_secret": "...", "domain": "feishu"}
- payload:
POST /api/lark/chats- payload:
{"app_id": "...", "app_secret": "...", "domain": "feishu"}
- payload:
POST /api/lark/temp_ws/start- payload:
{"app_id": "...", "app_secret": "...", "domain": "feishu"}
- payload:
POST /api/lark/temp_ws/stop- payload:
{}
- payload:
POST /api/wechat/qr_login/start- payload:
{"base_url": "https://ilinkai.weixin.qq.com"}or{}
- payload:
POST /api/wechat/qr_login/poll- payload:
{"session_key": "..."}
- payload:
WeChat QR login is special: when login is confirmed and a token is returned, the API auto-binds the WeChat user and schedules an internal service restart so the new token can take effect. Do not add an extra restart unless the user asks.
Change the global default working directory
Use POST /api/config:
{
"runtime": {
"default_cwd": "/path/to/workdir"
}
}
Do not overwrite scope-level custom_cwd entries.
Switch primary platform
Use POST /api/config and keep platforms.enabled complete:
{
"platform": "discord",
"platforms": {
"enabled": ["slack", "discord"],
"primary": "discord"
}
}
Make sure the target platform config section exists and validates. Do not delete old platform config unless the user explicitly asks.
Configure an outbound proxy for an IM platform
When the host cannot reach a platform API directly, set proxy_url on that platform's config block.
Use POST /api/config with only the proxy field for the affected platform:
{
"telegram": {
"proxy_url": "http://proxy.internal:3128"
}
}
Notes:
proxy_urlacceptshttp://,https://, and anysocks*://scheme (socks4,socks4a,socks5,socks5h). The SOCKS variants route throughaiohttp_socks(bundled).- Set the field to
null(or omit it on a fresh save) to disable the proxy. POST /api/configonly persists the new value; running platform adapters keep their old transport until the service restarts. After saving, runvibe restart --delay-seconds 60(orPOST /api/control {"action":"restart"}with the user's confirmation) so the proxy applies to live connections.- Do not paste credentialed proxy URLs (
user:pass@host) into logs or chat replies; mask the credentials portion when reporting back.