You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The agents.yaml schema. Every field below is sourced from the Zod schema in packages/sdk/src/internal/parser/schema.ts and the config types in packages/sdk/src/internal/types/config.ts. For a tutorial, see Configure an agent.
One block per provider; each holds its credentials.
defaults.provider
string
no
Default target for plan/apply. all targets every declared provider.
defaults.session.qoder.identity_id
string
no
Existing Qoder Forward Identity used as the local Session default. If omitted, OpenCMA looks up the enabled Identity whose external_id is __qca_admin_identity__ and sends its real idn_... id. Never created or managed by apply.
environments
map
no
Cloud runtimes.
tunnels
map
no
Existing Qoder BYOC tunnels referenced by sessions; OpenCMA does not manage their lifecycle.
vaults
map
no
Credential stores.
memory_stores
map
no
Persistent agent context (Qoder, Volcengine Ark).
skills
map
no
Reusable capability modules.
files
map
no
Local files uploaded to the Files API (Bailian, Volcengine Ark).
agents
map
no
The core managed-agent resources.
deployments
map
no
Repeatable run units.
Secrets use ${VAR_NAME} and resolve from .env (walking up to the project root). agents init appends agents.state.json and .env to .gitignore.
Provider configuration
Each provider under providers is validated by the provider's own config schema.
Bailian (Aliyun AgentStudio)
Field
Type
Required
Description
api_key
string
yes
DashScope API key.
workspace_id
string
yes
Bailian workspace id (llm-...).
base_url
string
no
Override the derived endpoint (https://<workspace_id>.cn-beijing.maas.aliyuncs.com/api/v1/agentstudio).
Existing environment ID. When present, OpenCMA never creates, updates, or deletes the remote environment. Removing this line later is blocked as an ownership error — release first with agents state rm (see Use BYOC environments).
config.type
"cloud" | "self_hosted"
yes
Environment type. self_hosted is used for Qoder BYOC.
Tunnels are existing Qoder resources allocated by the BYOC administrator. They are passed only when a Qoder session/deployment is created and are never created, updated, or deleted by OpenCMA. See Use BYOC environments for a complete setup and lifecycle guide.
initial_events is a discriminated union; schedule.expression must be a 5-field cron expression.
Deployment tunnel caveat: Qoder's deployment API does not accept tunnel_id, so the tunnel is dropped from the deployment payload and server-side runs execute without it (validate/plan emits a warning). Use sessions for private-network MCP access; see Use BYOC environments.