Developers
Agents, from your terminal
AgentSky agents are persistent — they keep state, memory, and history for life. The sky CLI launches one in two commands; the API is a 202 send plus one standing event stream.
New to AgentSky? See what you can build with the API and its included browser UI, then launch your first agent below.
1. Install and log in
npm i -g @agentsky/sky
sky auth login # opens the browser once; CI: set SKY_API_TOKENLogin mints an API token scoped to you (revocable anytime under Settings → API tokens). Headless machines use sky auth login --no-browser.
2. Launch an agent
cd my-project
sky launch # scaffolds ./agent.toml, creates the agent, prints its addressagent.toml is optional — sky launch with no file gives you the one-click default (hermes). An agent is a reusable spec; launch also starts its first session (the pod-backed runtime you talk to). Edit the file and re-apply with sky deploy.
3. Talk to it
sky agent message agent_cmtb2f0a8m9k7x51q4ez6r0d "Summarize today's signups" # default session; streams until idle
sky agent chat agent_cmtb2f0a8m9k7x51q4ez6r0d # interactive REPLOr over HTTP — one origin, one namespace (https://api.agentsky.dev/v1). Chat is session-scoped; find the session id with sky session list agent_… (or defaultSessionId on GET /v1/agents/agent_…):
# send (echoes the event; output never rides this response)
curl -X POST https://api.agentsky.dev/v1/sessions/SESSION_ID/events \
-H "Authorization: Bearer ast_..." -H "Content-Type: application/json" \
-d '{"events":[{"type":"user.message","content":[{"type":"text","text":"Summarize today's signups"}]}]}'
# listen (standing SSE — every turn, every channel, agent-initiated posts)
curl -N https://api.agentsky.dev/v1/sessions/SESSION_ID/stream \
-H "Authorization: Bearer ast_..."One Q&A = POST the message, read the stream until session.status_idle (check its stop_reason). Missed events replay from GET /v1/sessions/SESSION_ID/events — the list returns the same event objects as the stream; dedupe by event id.
Go deeper
API reference →
Every /v1 endpoint, the error contract, and the full stream event catalog.
CLI reference →
Every sky command: auth, launch/deploy, agent, universe, and secrets.
agent.toml →
The declarative agent file — everything the create wizard can set.
Skills →
Reusable instruction + script bundles — upload once, attach by reference, pin revisions, or load from a GitHub repo.
AgentSky