Agents
Create an agent
POST /v1/agents- Permission
write:configs- Tokens
- API key, CLI user token
Create an API-managed agent. It is live immediately.
{
}
{
}
1
import os
2
3
from ellipsis import (
4
AgentConfig,
5
AgentIdentity,
6
BudgetConfig,
7
ClaudeCodeConfig,
8
Ellipsis,
9
SessionConfig,
10
SessionConversationConfig,
11
)
12
13
client = Ellipsis(api_key=os.environ["ELLIPSIS_API_TOKEN"])
14
15
result = client.agents.create(
16
AgentConfig(
17
ellipsis=AgentIdentity(name="check-tests", version="v1", enabled=True),
18
session=SessionConfig(
19
claude_code=ClaudeCodeConfig(
20
model="claude-opus-5-5",
21
prompt="Run the tests and report failures.",
22
),
23
environment="api-environment",
24
budget=BudgetConfig(session=3),
25
conversation=SessionConversationConfig(interactive=True),
26
),
27
),
28
)
29
print(result)
1
import { AgentKind, Ellipsis } from '@ellipsis-dev/sdk';
2
3
const client = new Ellipsis({
4
apiKey: process.env.ELLIPSIS_API_TOKEN!,
5
});
6
7
const request: Parameters<typeof client.agents.create>[0] = {
8
ellipsis: {
9
kind: AgentKind.Agent,
10
name: 'check-tests',
11
version: 'v1',
12
enabled: true,
13
},
14
session: {
15
claude_code: {
16
model: 'claude-opus-5-5',
17
prompt: 'Run the tests and report failures.',
18
},
19
environment: 'api-environment',
20
budget: { session: 3 },
21
conversation: { interactive: true },
22
},
23
};
24
25
const result = await client.agents.create(request);
26
console.log(result);
1
curl -X POST "https://api.ellipsis.dev/v1/agents" \
2
-H "Authorization: Bearer $ELLIPSIS_API_TOKEN" \
3
-H "Content-Type: application/json" \
4
-d '{
5
"agent": {
6
"ellipsis": {
7
"kind": "agent",
8
"name": "check-tests",
9
"version": "v1",
10
"enabled": true,
11
"metadata": {
12
"labels": [],
13
"annotations": {}
14
}
15
},
16
"session": {
17
"claude_code": {
18
"model": "claude-opus-5-5",
19
"prompt": "Run the tests and report failures."
20
},
21
"environment": "api-environment",
22
"budget": {
23
"session": 3
24
},
25
"permissions": {
26
"github": null,
27
"ellipsis": null
28
},
29
"skills": [],
30
"conversation": {
31
"interactive": true
32
},
33
"metadata": {}
34
}
35
}
36
}'
Request
agentAgentConfig | SlackConfig | GithubConfig | LinearConfig | SentryConfigrequired
The agent's definition, in the same schema as a YAML file under .ellipsis/. Its `ellipsis.kind` picks the kind of agent, and an account has at most one `slack`, `github`, `linear`, and `sentry` agent.
Response
agentStandardAgent | SlackAgent | GithubAgent | LinearAgent | SentryAgentrequired
The agent.