Project Actions
Project Actions are custom scripts that appear in the IDE's action menu. They let you automate common tasks without leaving the interface.
What Are Project Actions?
Actions are defined in your project's configuration and can run shell commands, OpenCode sessions, or composite workflows.
Defining Actions
In .opencode.jsonc:
{
"actions": {
"lint": "npx eslint src/",
"test": "npm test",
"deploy": "opencode run -p 'Deploy to production'"
}
}Running Actions
Click the actions button in the toolbar, or use the command palette (Ctrl+Shift+P) and type the action name. Output streams into the terminal panel.