# Get started

Connect an AI agent to JSheets, ask it to build part of a model, and check what it did.

## Let your agent set it up

Paste this into an agent running on your computer, such as Gemini CLI, Claude Code or Codex CLI:

```text
Read https://jsheets.app/llms.txt and follow its instructions to install JSheets on this computer, connect yourself to its MCP server, and check the connection. Ask me before installing anything.
```

The agent asks before installing, connects itself, and tells you if it needs you to open a workbook or restart it. Or follow the steps below yourself.

## 1. Open JSheets

[Install JSheets](https://jsheets.app/docs/install.md) and open it. Choose **File › New** for a blank workbook or **File › Open…** for an `.xlsx` file you already use. Your original Excel file stays untouched.

The MCP server starts with the app; there is nothing else to run. In **File › Agents**, set access to **Edit** so the agent can build in the workbook. Choose **Read only** if you only want it to look.

## 2. Open your agent

Start the agent you already use, such as Claude Code, Codex CLI, or Gemini CLI. Use one running on the same computer, not a cloud session.

## 3. Connect it

Choose **Agent › Copy config** to get the current URL. The default is `http://127.0.0.1:47110/mcp`. Add it to your agent. There is no JSheets token or sign-in.

| Agent | Setup |
| --- | --- |
| Claude Code | `claude mcp add --transport http jsheets http://127.0.0.1:47110/mcp` |
| Codex CLI | In `~/.codex/config.toml`: `[mcp_servers.jsheets]` then `url = "http://127.0.0.1:47110/mcp"` |
| Gemini CLI | In `~/.gemini/settings.json`: `"mcpServers": { "jsheets": { "httpUrl": "http://127.0.0.1:47110/mcp" } }` |
| Claude Desktop, Cursor, VS Code, Windsurf | See [Connect an agent](https://jsheets.app/docs/agents.md) for each config file. |

To check the connection, ask: “Use the JSheets `workbook_overview` tool to list the sheets in the open workbook. Do not edit anything.” Compare the names with the open workbook.

## 4. Ask it to build something

Ask for a piece of work in plain words. For example:

- Build a cash flow statement from the trial balance.
- Add a price and volume sensitivity table to the model.
- Find every hard-coded number in the Model sheet.
- Label each input and explain what feeds gross profit.
- Build a monthly budget with a variance column.
- Turn the revenue build into a three-scenario model.
- Check that the balance sheet balances in every year.
- Build a loan amortisation schedule.

Then look at what it did:

- **View › Changes** shows each step the agent committed, with the cells it wrote. Click a cell in a step to go there. See [Changes](https://jsheets.app/docs/changes.md).
- Select any result the agent built and choose **Formulas › Explain** to see where the number comes from. See [Explain](https://jsheets.app/docs/explain.md).
- **Formulas › Map** shows the structure: how the sheets connect, from inputs to outputs. See [Model map](https://jsheets.app/docs/map.md).

Agent steps share your undo history, so **Edit › Undo** takes back a step you don’t want.

## Save your work

Choose **File › Save as…** to keep a `.jsheets` workbook with its data, formulas, formatting, and edit history. Choose **File › Export XLSX…** to share with Excel users. The export keeps supported Excel content but not JSheets history. See [Workbook files](https://jsheets.app/docs/files.md) for round-trip and recovery limits.

## Use it by hand

The grid works like Excel. Click a cell or move with the arrow keys. Press F2 to edit, Enter to confirm, or Escape to cancel. Select a formula cell and press Ctrl+Alt+I (Control+Option+I on macOS) to explain it. Press Ctrl+K (Command+K on macOS) to open **Search or run a command**. See [Keyboard shortcuts](https://jsheets.app/docs/shortcuts.md) for more.
