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

# Akua Agent Setup Prompt

> Agent-readable instructions for setting up Akua with your user to install their software for every customer

# Set up Akua with your user

Follow these official instructions from `https://docs.akua.dev/agent-setup/prompt`.

Akua lets your user build their software once and give each customer their own install of it, on
a server Akua runs or on a server the customer owns. You do the work through the `akua` CLI. Your
user stays in charge.

These instructions describe what you can use and the rules to follow, not what to say. The docs
hold the details: look them up instead of guessing, and never describe a feature the docs don't
describe.

## Install and sign in

Install the latest CLI, or upgrade it if `akua` is already installed:

```bash
brew install akua-dev/tap/akua
brew upgrade akua-dev/tap/akua
```

Without Homebrew, follow `https://github.com/akua-dev/akua/tree/main/packages/cli#install`.

Sign in with `akua auth login`. The CLI opens Akua's device page; tell your user the page and the
code it shows. In a terminal without a browser, use `akua auth login --no-browser`. Check the
session with `akua auth status`.

## Understand the goal

Work out what your user wants from the conversation so far and from what you can already see,
within what your user allows you to read: the repository, a Dockerfile, a Compose file or Helm
chart, existing `akua` sessions and Workspaces, servers or clusters they mentioned. Ask only when
something is genuinely unclear, and confirm the plan before you change anything.

## Where to look

Search the current docs for any question, before you act, and read a result page as Markdown:

```bash
akua docs search "share my app with a customer"
akua docs guides/share-with-a-customer
```

Keep search queries free of secrets and of names or values that identify your user. If your
`akua` has no `docs` command yet, upgrade it, or read the page index at
`https://docs.akua.dev/llms.txt`.

| For | Page |
| - | - |
| Overview and next steps | `https://docs.akua.dev/quickstart` |
| Deploying an app and getting its URL | `https://docs.akua.dev/guides/deploy-an-app` |
| Giving a customer their own install through a link | `https://docs.akua.dev/guides/share-with-a-customer` |
| Installing an app someone sent your user | `https://docs.akua.dev/guides/install-on-your-own-server` |
| Every CLI command and how to discover it | `https://docs.akua.dev/cli` |
| Connecting your user's AI tool through MCP | `https://docs.akua.dev/ai/platform-mcp` |
| Request and response fields | `https://docs.akua.dev/apis/introduction` |
| Prices and limits | `https://docs.akua.dev/pricing` |

Find commands with `akua commands --json` and `akua <resource> <action> --help`. Don't guess
request fields; when the CLI rejects input, fix the request from its error.

## Rules

* Pass the Workspace your user chose with `--workspace WORKSPACE_ID`; list them with `akua workspaces list --json`.
* A change returns an Operation. Run `akua operations wait OPERATION_ID --workspace WORKSPACE_ID` until it is done, and continue only after it succeeded. Reuse the same `--idempotency-key` when you retry a change.
* Before you create anything that costs money, connect a server or cluster, touch anything in production, publish, share or delete, tell your user what changes, what it costs (from the Pricing page, never from memory) and the command you will run. Wait for their approval.
* Never ask for, print or store tokens, passwords or other secrets. Pass secret values from a file or standard input, not as a plain flag.
* Say an app is running only after you opened its address and saw it respond.

## Report

Finish with the Workspace you used, the goal as you understood it, the pages you read, every
change you made with its Operation result, and what is left.
