Skip to main content
These commands are in preview and are available to customers on request. They are off until OpenWork turns them on for your organization, and how they work may change. To try them, ask your OpenWork contact.
The openwork opencode-config commands give members an OpenCode config file that you write. Run the CLI and sign in as described in the CLI overview.
A published file can run code on members’ computers. Plugins and local MCP servers in the file run on the computer of every member it is assigned to, and a model provider in the file can send their prompts to the address it names. Review a file the way you would review software you install for your team.
Publishing, assigning, unassigning and removing need the Manage agent permissions permission and a recent sign-in. Reading the list and the status needs View agent permissions. While the feature is off, every command stops with feature_disabled and changes nothing.

The file or Agent permissions

A member is governed by the file or by Agent permissions for the engine’s rules, never both. For a member a file reaches, the file replaces these Agent permissions:
  • Commands
  • File edits
  • Folders outside the workspace
  • Web search
  • Skills on the computer
The other Agent permissions still apply to everyone, including members with a file: opening websites, uploads to websites, private values, computer use, file sends, sandbox and host execution, and the MCP server permissions. Where one of them and the file speak about the same action, Agent permissions win. Members without a file keep Agent permissions in full.

publish

Store a file under a name, or replace the one stored there.
Nobody receives a file until it is assigned. Publishing over a name that is already assigned updates the members who have it the next time their desktop app checks in. The file is an OpenCode config in the current format, as plain JSON without comments. Example:
Rules are read in order and the last one that matches decides. A file is refused, and nothing is stored, when it:
  • is larger than 256 KiB;
  • uses an older OpenCode key name: permission, provider, plugin, agent or command;
  • defines a provider whose id starts with openwork or ipr_, or an MCP server whose name starts with openwork;
  • has permissions that are not a list of action, resource and effect rules.
Do not put keys or tokens in the file. Everyone who can view agent permissions can read it.

assign

Give a published file to everyone, to teams or to people.
Everyone, each team and each person has one file at most, so assigning another replaces it. When several reach a person, their own wins, then a team’s, then everyone’s.

status

See who a file reaches and what their desktop app reported.
Status is kept for each person, not for each computer. A desktop app that is too old to apply a file keeps Agent permissions in full and shows as waiting.

list and show

list shows each file’s name, version, size and who has it. show prints the file.

unassign

Take the file away from everyone, from teams or from people.
People the file no longer reaches go back to Agent permissions in full. The command asks first unless --force is passed.

remove

Delete a file that is assigned to nobody.
A file that is still assigned is refused. The command asks first unless --force is passed.