> ## Documentation Index
> Fetch the complete documentation index at: https://www.datum.net/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Agent home for Datum, with what it is, pricing, and how to act: https://agents.datum.net
> If you can only fetch URLs: read https://www.datum.net/docs/llms.txt in full and open the most specific page for the task. Commands, limits, and field paths are on task, operations, and limits pages, not on section overviews. Pages described as "Documentation is coming soon" are placeholders.
> If you have a shell or can save files: download https://www.datum.net/docs/llms-full.txt (every page, about 740 KB) once and search it with grep, instead of fetching pages one at a time.
> datumctl describes itself: `datumctl api-resources` lists resource types and `datumctl explain <resource>` shows a schema. To act on live resources, use Datum MCP or datumctl. To search the docs, use the Docs MCP server at https://www.datum.net/docs/mcp.

# AI assistant

> Chat with Patch, the Datum Cloud assistant, from the terminal: ask about your resources in plain language, diagnose problems, and review changes before they're applied.

Patch is the Datum Cloud assistant. Ask it about your resources in plain language, such as "why is my workload not available?" or "is my load balancer serving?", and it answers using the same permissions your account already has. There's no API key to bring and nothing to configure.

`datumctl assistant` is a [plugin](https://www.datum.net/docs/datumctl/plugins/using-plugins.md) from the Milo catalog, so it updates on its own schedule. To install it, add the catalog and install the plugin:

```bash theme={null}
datumctl plugin index add milo-os milo-os/cli-plugins
datumctl plugin install milo-os/assistant
```

## Start a conversation

> [tab] Full-screen chat
>
> ```bash theme={null}
> datumctl assistant
> ```
>
> Opens the full-screen chat for your current project. Add `-c` to open your most recent conversation instead of a new one.

> [tab] One question
>
> ```bash theme={null}
> datumctl assistant chat "Why is the api-backend workload not available?"
> ```
>
> Sends one message, streams the answer, and exits. This is the form to use in scripts and pipes. The conversation ID is printed on standard error.

> [tab] Pick up where you left off
>
> ```bash theme={null}
> datumctl assistant resume
> ```
>
> Opens a searchable list of your past conversations. Add `--last` to go straight to the most recent one.

To continue a conversation from a script, pass the ID it printed, or `-c` for the most recent one:

```bash theme={null}
datumctl assistant chat -c "and the edge-cache one?"
datumctl assistant chat "and the edge-cache one?" --context-id CONTEXT_ID
```

For terminals that can't run the full-screen chat, use `datumctl assistant chat --interactive` for a line-based session.

## Choose the project

Patch works in your current context. To ask about another project, select it first with `datumctl ctx use`, or pass `--project your-project-id`. See [Contexts and scoping](https://www.datum.net/docs/datumctl/contexts-and-scoping.md).

## What Patch can do

Patch answers questions about your project and its resources, and uses diagnostic tools from the Datum services your project uses. For example, it can:

* **Diagnose a Compute workload** that isn't available, explain a status reason, check quota, and list Instances and instance types.
* **Diagnose a load balancer** that isn't serving, and summarize its traffic, certificates, hostnames, and traffic protection.
* **Diagnose a network** that isn't ready, and its network services.

To see exactly which services and tools Patch can use in your project, run the following command:

```bash theme={null}
datumctl assistant card
```

## Making changes

Patch never changes anything on its own. It proposes a change as a plan: the exact manifests it intends to apply, shown before anything happens. Applying a plan is a separate, explicit step, and the service refuses any manifest that differs from the one you were shown.

## Manage conversations

Conversations are kept by the assistant service, not on your machine, so you can continue one from anywhere you're logged in.

| Command | What it does |
| - | - |
| `datumctl assistant conversations list` | List the conversations in the project. Add `--archived` to include archived ones. |
| `datumctl assistant conversations show CONTEXT_ID` | Print one conversation's transcript. |
| `datumctl assistant conversations rename CONTEXT_ID` | Name a conversation. |
| `datumctl assistant conversations archive CONTEXT_ID` | Hide a conversation from the list without deleting it. It stays resumable by ID. |
| `datumctl assistant conversations delete CONTEXT_ID` | Permanently delete a conversation and its transcript. |

## Use Patch from your own agent

Your own AI agent can hand questions to Patch, which brings Datum's own diagnostic tools and guidance:

* **From a script or another agent,** run `datumctl assistant chat "QUESTION"`. It streams the answer to standard output and prints the conversation ID on standard error, so the agent can continue with `--context-id`.
* **From Claude Code,** the [Datum MCP repository](https://github.com/datum-cloud/datum-mcp) includes a skill that teaches Claude when an open-ended diagnostic question, or a risky change across several resources, is better handed to Patch than done with [Datum MCP](https://www.datum.net/docs/agents/datum-mcp.md)'s own tools.
* **Over the A2A protocol,** Patch publishes an agent card that describes its endpoint, its skills, and the Datum services it can use in your project. To see it, run `datumctl assistant card`.

## Moving from datumctl ai

`datumctl ai` was a local assistant that needed your own Anthropic, OpenAI, or Gemini key. It has been replaced by Patch. The `datumctl ai` command still works and now runs the `assistant` plugin, so existing scripts keep going.

Nothing reads your old provider key anymore, but it's still on disk. Delete it:

> [tab] macOS / Linux
>
> ```bash theme={null}
> rm ~/.config/datumctl/ai.yaml
> ```

> [tab] Windows
>
> ```powershell theme={null}
> del %AppData%\datumctl\ai.yaml
> ```

The chat pane in the [interactive console](https://www.datum.net/docs/datumctl/console.md) ran on the same local assistant and has also been removed. Use `datumctl assistant` for chat. Chats you held in the console were saved to `~/.datumctl/conversations`, and nothing reads them now either.

## Next steps

* [Connecting an AI client with the MCP server](https://www.datum.net/docs/datumctl/ai/mcp-server.md) — use Datum from Claude, Cursor, or another MCP client instead of the terminal.
* [Agent skills](https://www.datum.net/docs/agents/skills/index.md) — teach your own agents how to work with Datum resources.
* [`datumctl` overview](https://www.datum.net/docs/datumctl/overview) — everything else the CLI can do.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.