# OpenCode 2.4: automations and a browser with your logins

> OpenCode 2.4.0 lets its agent run prompts or commands on a timer, a cron schedule or an MCP event, and adds a desktop browser that imports your sign-ins.

- Published: 2026-11-23
- Publisher: Rig Labs (https://riglabs.ai/)
- Canonical: https://riglabs.ai/blog/opencode-2-4-automations/
- Answers: OpenCode 2.4 automations
- Agent file (a short card for your agent): https://riglabs.ai/blog/opencode-2-4-automations/AGENT.md

---

OpenCode 2.4.0, released on November 23, 2026, adds automations: the OpenCode agent can now run a prompt, a script or a shell command on a timer, on a cron schedule, or when a connected MCP server sends an event. The desktop app also gets a built-in browser that imports your sign-ins from Chrome, Edge, Firefox or Safari.

What you can now do: if you use OpenCode, the open-source coding agent, you can ask it to do a job every morning or every time something happens in a connected tool, without a separate scheduler. In the desktop app, it can read and work in the same signed-in web pages you use.

## What are OpenCode automations?

OpenCode automations are jobs the agent schedules for itself, per the [v2.4.0 release notes](https://github.com/anomalyco/opencode/releases/tag/v2.4.0). Each one runs one of three things:

- a prompt to the agent,
- a Code Mode script,
- a fixed shell command.

Each automation runs once, on an interval, on a cron schedule, or when a connected MCP server pushes an event. MCP (Model Context Protocol) is the standard way agents connect to outside tools, and "push an event" means the tool tells OpenCode that something happened. You manage automations with the `/automation` command. A shell action asks for your approval once, when it is created, and OpenCode records each run's exit code and output.

If you do not want automations, set `"automations": false` in your config.

## What does the OpenCode built-in browser do?

The OpenCode built-in desktop browser keeps one persistent profile with your sign-ins, per the release notes. You can import sign-ins and browsing history from Chrome, Edge, Firefox or Safari, and add extensions from Chromium browsers or the Chrome and Edge stores. Links in the chat open signed in, tabs survive restarts, and the agent can read and drive the same pages without you switching apps.

The release notes add two controls:

- Web links in the chat open beside the conversation. Modifier-click opens your system browser.
- A `browser` deny rule in your permission settings refuses every agent browser call.

## What else changed in OpenCode 2.4.0?

OpenCode 2.4.0 also brings these changes, per the release notes:

| Change | What it means |
|---|---|
| `generate_video` | The agent makes videos when a connected provider has a video model, and saves them to your workspace |
| Claude Agent provider | Given a list of Claude config folders, a chat moves to the next account when one hits its usage limit |
| Plugin updates | Plugins pinned to `@latest` or a range now update themselves every 24 hours |
| GitHub Copilot | No longer reads `GITHUB_TOKEN`; set `COPILOT_GITHUB_TOKEN` or sign in with OAuth |
| Image tool | `experimental_image_generate` is now `generate_image`, so if you saved an "always allow" approval under the old name, OpenCode asks you to approve the tool one more time |

## What to do today

Update OpenCode, then ask the agent for one small automation that only reads, and check it with `/automation`:

```
Every weekday at 9:00, read the open issues in this repository and write a short summary of new ones to notes/issues-today.md. Do not change any other file.
```

If you would rather keep the agent off a schedule, add `"automations": false` to your OpenCode config.

Last checked 2026-11-23.

Sources:
- [OpenCode v2.4.0 release notes, 2026-11-23](https://github.com/anomalyco/opencode/releases/tag/v2.4.0)
