> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.6mm.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.6mm.com/_mcp/server.

# Claude Code CLI

Claude Code CLI is useful when the agent can run terminal commands, inspect JSON output, and update integration code.

<h2 id="recommended-setup">
  Recommended setup
</h2>

| Need                               | Setup          |
| ---------------------------------- | -------------- |
| Quick market checks                | 6MM CLI        |
| Local account context              | Local MCP      |
| Repeatable implementation workflow | Agentic Skills |

<h2 id="example-tasks">
  Example tasks
</h2>

```text
Use 6MM CLI to list available perpetual markets and return JSON.
```

```text
Use 6MM to inspect webhook event examples and generate an idempotent handler plan.
```

```text
Use 6MM testnet data to validate this Trading Widget integration. Do not place live orders.
```

<h2 id="best-practice">
  Best practice
</h2>

Prefer JSON output for agent workflows. It is easier to parse, compare, and include in implementation logs.