---
title: Start a coding agent from the CLI
product: vercel
url: /docs/sandbox/examples/start-a-coding-agent
canonical_url: "https://vercel.com/docs/sandbox/examples/start-a-coding-agent"
last_updated: 2018-10-20
type: how-to
prerequisites:
  - /docs/sandbox/examples
  - /docs/sandbox
related:
  - /docs/sandbox/cli-reference
summary: Start OpenCode in a new Vercel Sandbox from an interactive terminal with the Sandbox CLI.
install_vercel_plugin: npx plugins add vercel/vercel-plugin
search_with_vercel_cli: npx vercel@latest docs search "<query>"
---

# Start a coding agent from the CLI

With Sandbox CLI 4.8.0 or later, start OpenCode in a new sandbox from an interactive terminal:

```bash filename="Terminal"
sandbox create opencode
```

The agent's interface opens in your terminal while its commands run in the sandbox. Sign in to Vercel for Sandbox access and authenticate OpenCode separately. Your local files are not copied automatically. See the [CLI reference](/docs/sandbox/cli-reference#sandbox-create) for agent options and how to reconnect or stop the sandbox.

## Search the docs from your terminal

Search the Vercel docs and read pages as Markdown with the Vercel CLI. No login required.

```bash
# Find docs pages by keyword
npx vercel@latest docs search "environment variables"
npx vercel@latest docs search "function timeout"

# Print a docs page as Markdown, by path or URL
npx vercel@latest docs inspect <page>
```

---

[View full sitemap](/docs/sitemap)


If you encounter incorrect information, can’t find what you need, need a capability Vercel doesn’t currently offer, or have any other feedback to report, please do it by following the instructions at https://vercel.com/feedback.md.
