# Vyomi for AI agents

Connect your coding agent to Vyomi, the local simulator for AWS, GCP and Azure. The agent can then run and test your cloud code against Vyomi instead of a real cloud account.

## Why

- Your agent runs cloud code against Vyomi from your own machine, so there is no cloud bill while it works.
- It sees which services your project uses and whether Vyomi emulates them, before it changes anything.
- It sets up local settings only. Production config keeps pointing at the real cloud.

## Install

Every agent starts the same MCP server with `npx -y vyomi-tunnel mcp`, so you need Node.js 18 or later. If vyomi-tunnel is installed, that command runs your installed copy, so keep it at 1.4.0 or later (`npm i -g vyomi-tunnel`): older versions have no AGENTS.md step.

### Claude Code

```text
/plugin marketplace add vyomi-cloud/claude-plugins
/plugin install vyomi@vyomi
```

### Codex

```bash
codex plugin marketplace add vyomi-cloud/claude-plugins
codex plugin add vyomi@vyomi
```

### Copilot CLI

```bash
copilot plugin marketplace add vyomi-cloud/claude-plugins
copilot plugin install vyomi@vyomi
```

### Cursor

[Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=vyomi&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsInZ5b21pLXR1bm5lbCIsIm1jcCJdfQ==)

The button opens Cursor and adds the `vyomi` MCP server.

### VS Code

[Install in VS Code](https://vscode.dev/redirect?url=vscode%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522vyomi%2522%252C%2522command%2522%253A%2522npx%2522%252C%2522args%2522%253A%255B%2522-y%2522%252C%2522vyomi-tunnel%2522%252C%2522mcp%2522%255D%257D)

VS Code shows the server details for you to review before it installs. Or from a terminal:

```bash
code --add-mcp '{"name":"vyomi","command":"npx","args":["-y","vyomi-tunnel","mcp"]}'
```

### Gemini CLI and other agents

Add this server to the agent's MCP settings (for Gemini CLI, `~/.gemini/settings.json`):

```json
{
  "mcpServers": {
    "vyomi": {"command":"npx","args":["-y","vyomi-tunnel","mcp"]}
  }
}
```

## First prompt

Open your project and ask:

> Set this project up to run against Vyomi.

The agent checks whether Vyomi is running, scans the project for cloud SDK and Terraform usage, and shows you the settings it would use. It writes `.env.vyomi` only after you say yes.

## What the agent can do

The server has 9 tools. Eight are read-only. `vyomi_write_env` writes only `.env.vyomi`, and only after you agree.

- `vyomi_status`: whether Vyomi is running, its endpoint, tier, active space and readiness, and (vyomi-tunnel 1.4.0+) whether your installed tunnel is behind npm.
- `vyomi_scan_repo`: finds SDK and Terraform usage in your project and maps it to Vyomi coverage, with warnings.
- `vyomi_services`: the emulated services for each cloud: status, actions, data plane and SDK support.
- `vyomi_env`: environment variables, SDK config and a Terraform block for one cloud, with known gotchas.
- `vyomi_reach`: what this machine can reach (the Nano tunnel, in-browser VMs and databases, mesh hosts) and the command to connect to each.
- `vyomi_capability`: looks up a feature in the capability registry: its level on Nano and on offline or mesh, limitations and tests.
- `vyomi_snippet`: a ready-to-run CLI, Python, JavaScript or curl call for one operation, pointed at your simulator.
- `vyomi_agents_md`: proposes the Vyomi section for your project's `AGENTS.md`. It never writes; your agent shows you the change first.
- `vyomi_write_env`: writes `.env.vyomi`. It never overwrites an existing file unless you ask.

## AGENTS.md

`vyomi_agents_md` proposes a short "Local cloud: Vyomi" section for `AGENTS.md`, between `<!-- vyomi:start -->` and `<!-- vyomi:end -->` markers. The section says:

- During development the project's cloud code runs against Vyomi; production still uses the real cloud.
- Local settings live in `.env.vyomi`. Load it only for local runs, and regenerate it with the Vyomi MCP server instead of guessing endpoints.
- Do not start the simulator; ask the developer. Never point local runs at a real cloud account.
- Never change production config, deployment manifests or secrets to make local runs work.
- Services Vyomi does not emulate keep using the real cloud.

Commit it. `AGENTS.md` travels with the repo, so your teammates' agents and cloud or PR agents, where no plugin can be installed, also run against Vyomi. It holds no endpoints, so it works whichever Vyomi each person uses.

Claude Code reads `AGENTS.md` only when the project has no `CLAUDE.md`, `.claude/CLAUDE.md` or `CLAUDE.local.md`. If you have one, the tool also proposes an `@AGENTS.md` import line for it.

## Cloud agents

Coming soon.

## Troubleshooting

### Vyomi or the tunnel is not running

`vyomi_status` tells the agent when nothing answers. For Nano, run `vyomi-tunnel` and keep https://vyomi.cloud/nano open. For a Pro or Max mesh, or the offline appliance, run `vyomi up`. Then ask the agent to check again.

### The access key is missing

The MCP server needs no access key, but the tunnel does. If its key is missing or was revoked, the Vyomi console shows **Reset tunnel**. Or get a one-time code from Setup Tunnel > Get install command and run `vyomi-tunnel reset <code>`.

### npx is slow the first time

The first `npx -y vyomi-tunnel mcp` downloads the package (about 20 MB). Later starts use the npm cache. If you install vyomi-tunnel globally, `npx` runs your installed copy.
