These steps install Ellipsis on your repositories, set up the environment its agents run in, and build your first agent.

## Core concepts

| Concept | Meaning |
| --- | --- |
| [Environment](/docs/environments) | An environment is the repositories, setup scripts, environment variables, and machine size a session starts with. |
| [Agent](/docs/agents) | An agent saves a prompt, an environment, permissions, and a budget. |
| [Session](/docs/sessions) | A session is a conversation with [Claude Code or Codex](/docs/models) in its own cloud environment. |

## Before you begin

### Install on GitHub

[Get Started](https://app.ellipsis.dev)

### Install the CLI

<span id="use-the-cli" />

```sh
curl -fsSL https://ellipsis.dev/install.sh | sh
```

```sh
el auth login
```

## Create your first session

### Set up your environment

Paste this into Claude Code or Codex in your repository.

```text
Set up an Ellipsis environment for this repository. An environment is a YAML file that defines the cloud environment Ellipsis agents run in: the repositories checked out, the scripts that install dependencies and build, the environment variables, and the machine size. The `el` CLI is installed and logged in.

1. Learn how this repository installs dependencies, builds, and runs its tests. Read the README, AGENTS.md, CLAUDE.md, package manifests, lockfiles, Dockerfiles, Makefiles, and CI workflows.

2. Run `el environment init .ellipsis/environments/<repo>.yaml`, where <repo> is this repository's GitHub name, then edit the file. Read https://www.ellipsis.dev/docs/environments and https://www.ellipsis.dev/docs/environments/schema first. Follow these rules:
   - Set `ellipsis.name` to <repo> and list <repo> under `repositories`.
   - The repository is checked out at /sandbox/<repo>. Scripts run in /sandbox as the sandbox user, and each must exit 0.
   - Install dependencies in `hooks.build_base`. List every file the install reads in `build_base.inputs`, each path starting with <repo>/ (for example <repo>/package-lock.json). Only listed files exist while build_base runs. Globs fail.
   - Build in `hooks.after_checkout`, written so it is safe to run again on a workspace that already has its output. Start services in the background and wait until they are ready.
   - Remove the starter's example variables and MCP servers unless this repository needs them. List required secrets under `variables` by name only. Never write a secret value into the file.

3. For each secret the tests need, ask me for the value or tell me to run `el variable set NAME=value` myself. Do not continue until they are set.

4. Create the environment: `el environment create -f .ellipsis/environments/<repo>.yaml`

5. Test it: `el session start -e <repo> --model claude-opus-5-5 --budget 2 --watch "Run this repository's tests and report the result. Do not change any files."`

6. If the session fails or the tests do not run, read the output (`el session export <session-id>` prints the full log), fix the file, apply it with `el environment edit <repo> -f .ellipsis/environments/<repo>.yaml`, and test again. Repeat until the tests run. If a session fails because the account has no credits, stop and tell me to add credits under Billing > Credits in the Ellipsis dashboard.

7. Once the tests run, delete the test copy with `el environment delete <repo>` and open a pull request that adds .ellipsis/environments/<repo>.yaml to the default branch. Ellipsis syncs the environment from the default branch when the pull request merges.

8. Reply with the pull request link, the test result, and any secrets I still need to set.
```

For a repository named `api-repo`, the prompt ends with a pull request that adds an environment named `api-repo` in `.ellipsis/environments/api-repo.yaml`. Merge it before the next step.

### Build an agent

Commit this file to the repository's default branch:

```yaml title=".ellipsis/agents/nightly-tests.yaml"
ellipsis:
  kind: agent
  name: nightly-tests

trigger:
  type: cron
  schedule: '0 2 * * *'

session:
  claude_code:
    prompt: |
      Run the tests in api-repo. Report failures with the test
      name and error. Do not modify code.
    model: claude-opus-5-5
  environment: api-repo
  budget:
    session: 3
```

Every night at 02:00 UTC, a session runs the tests and reports failures without changing code. Replace `api-repo` with your repository's name in the prompt and in `environment`. Once the commit is on the default branch, the agent appears on the dashboard's **Agents** page.

### Start an agent session

```sh
el agent start nightly-tests
```

```text
✓ started session_4q8z1m7c2x9v5b3n6k0j8h4g2f7d1s5a3p9w6e0r
  https://app.ellipsis.dev/your-org/sessions/session_4q8z1m7c2x9v5b3n6k0j8h4g2f7d1s5a3p9w6e0r
  follow with: el session get session_4q8z1m7c2x9v5b3n6k0j8h4g2f7d1s5a3p9w6e0r --watch
```

### Follow the work

```sh
el session get <session-id> --watch
```

The dashboard and the CLI show messages and tool calls as they happen.

## What's happening

When you start the agent, these happen in order.

1. A new session starts with the agent's prompt, model, environment, and budget.
2. Ellipsis checks out `api-repo` and runs the environment's setup scripts, reusing saved results.
3. Claude Code runs the tests and reports failures, and the CLI shows each message and tool call.
4. When the prompt is answered, the session's `status` becomes `idle` and it stays open for follow-ups.
5. Every night at 02:00 UTC, the trigger starts another session.

## Next steps
  - [Agents](/docs/agents): Save a task and run it on a schedule or event
  - [Code review](/docs/code-review#quick-start): Review each push to a pull request
  - [GitHub](/docs/integrations/github#quick-start): Answer @ellipsis on issues and pull requests
  - [Slack](/docs/integrations/slack#quick-start): Answer @ellipsis mentions in Slack
  - [Linear](/docs/integrations/linear#quick-start): Answer Ellipsis mentions on Linear issues
  - [Sentry](/docs/integrations/sentry#quick-start): Investigate alerts (not generally released)
