Agent Permissions

Publish a managed OpenCode config

Changed on

Stores an OpenCode config file under a name, or replaces the one already stored under it. Publishing the same content again changes nothing and answers unchanged; new content raises the version and reaches assigned members the next time their desktop app checks in. The file uses the current OpenCode format and may hold any of its keys. Provider ids and MCP server names that OpenWork uses itself are refused, and so are the OpenCode v1 key names. Up to 262144 bytes and 50 configs per organization. Requires Managed OpenCode config and agent_permissions.manage with a recent sign-in.

put/v1/org/opencode-configs/{name}

Request

  • Base URL
    https://api.openworklabs.com
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Path parameters

name, string required

Request body

ManagedOpencodeConfigPublishRequest required
config, object required

Response

Created, updated, or unchanged.

ManagedOpencodeConfigPublishResponse required
result, 'created' | 'updated' | 'unchanged' required
config, ManagedOpencodeConfig required

Changes