Quick start

Start your first agent session from the CLI, Python, TypeScript, or curl.

These steps create an agent, start a session from it, wait for it to finish, and read its output.

Core concepts

ConceptMeaning
AgentAn agent saves a prompt, an environment, permissions, and a budget.
EnvironmentAn environment is the repositories, setup scripts, environment variables, and machine size a session starts with.
SessionA session is a conversation with Claude Code or Codex in its own cloud environment.

Before you begin

Install the CLI

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

Sign in

Sign in with device auth. The CLI opens your browser to approve the login:

1
el auth login

For CI, the SDKs, and curl, export an API key from API > API keys in the dashboard:

1
export ELLIPSIS_API_TOKEN="ellipsis_key_..."

Install the SDK

1
pip install ellipsis-dev

Create your first session

Create an agent

1
ellipsis:
2
kind: agent
3
name: classify-change
4
5
input:
6
json_schema:
7
type: object
8
properties:
9
description:
10
type: string
11
required: [description]
12
additionalProperties: false
13
14
session:
15
claude_code:
16
prompt: |
17
Classify the requested change as bugfix, feature, or maintenance.
18
Explain the classification in one sentence.
19
20
The change is {{description}}
21
model: claude-opus-5-5
22
output:
23
json_schema:
24
type: object
25
properties:
26
category:
27
type: string
28
enum: [bugfix, feature, maintenance]
29
reason:
30
type: string
31
required: [category, reason]
32
additionalProperties: false
33
budget:
34
session: 1

Start it with {"input":{"description":"Reject expired reset tokens"}} instead of a prompt. The validated result is output.result on the session once the message is answered.

1
el agent create -f classify-change.yaml

POST /v1/agents creates an agent without a repository file. Send the same fields as JSON under agent.

Start an agent session

Start the classify-change agent:

1
el agent start classify-change --input '{"description": "Reject expired reset tokens"}'

Typed input and output defines it. An agent with no input schema takes prompt instead of input.

Wait for it to finish

1
el session get <session-id> --watch

wait and --watch return when the session is idle or closed. wait returns how the message ended, one of completed, failed, stopped, or cancelled. --watch exits 0 only when the session has no error.

Read the output

1
print(client.sessions.get("your-session-id").session.output.result)

It matches the agent's output.json_schema and is null until the agent submits it.

1
{
2
"category": "bugfix",
3
"reason": "Rejecting expired reset tokens closes a validation gap."
4
}

What's happening

When you start the agent, these happen in order.

  1. Ellipsis checks input against the agent's input.json_schema, returning 422 when it doesn't match.
  2. message renders as Classify this change: Reject expired reset tokens.
  3. A new session starts with the agent's prompt, model, and budget.
  4. Claude Code answers the message in its own cloud environment.
  5. The validated result is saved as output.result on the session.
  6. The session's status becomes idle and it stays open for follow-ups.

Errors and retries

  • Errors return {"error": {"code": "...", "message": "..."}}. Branch on code, not message.
  • Retry 429 after Retry-After, and 5xx with backoff.
  • A start that times out can still succeed. Send the same idempotency_key when you retry it, and you get back the session the first request started. Keys are kept for 90 days.

Pagination

  • Paginated routes take limit and cursor.
  • Pass next_cursor until has_more is false.
  • SDK iterators fetch every page.

Next steps

On this page

Schedule a demo
For HumansFor Agents