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

# Amp

> Run Amp on an instabox machine and open it over SSH.

[Amp](https://ampcode.com) is a coding agent that runs in a terminal. It runs on the machine, and you
open it over SSH. [InstaADE](https://instabox.sh/docs/use-cases/ade/instaade.md) does these steps in one click.

You need the [instabox CLI](https://instabox.sh/docs/quickstart.md).

**1. Create a machine and install Amp**

```bash theme={null}
instabox create --name cloud-dev
instabox exec cloud-dev -- 'curl -fsSL https://ampcode.com/install.sh | bash'
instabox exec cloud-dev -- sudo ln -sfn /data/home/.amp/bin/amp /usr/local/bin/amp
```

**2. Open Amp**

```bash theme={null}
instabox ssh cloud-dev
amp
```

**3. Log in the first time**

Amp asks `Would you like to log in to Amp?`. Press `y`. Open the link that Amp shows in a
browser on your computer, sign in, check that the code matches, and approve. Amp then shows its
own first-run pages before its prompt.

> [!NOTE]
>
> Closing the terminal ends Amp on the machine. Amp keeps each thread at ampcode.com, and
> `amp threads continue` goes on with one.

> [accordion] Open Amp with one ssh command
>
> The machine's **Integrations → Amp** in the dashboard shows this command.
>
> ```bash theme={null}
> ssh -t -o StrictHostKeyChecking=accept-new -p 2222 ibssh_…@ssh.instabox.sh amp
> ```

> [card] [SSH](https://instabox.sh/docs/access/ssh.md)
>
> Shells, commands, and SSH tokens.

> [card] [Auto-pause and max-run](https://instabox.sh/docs/machines/auto-pause.md)
>
> What counts as idle and what wakes a machine.
