Sign in to the Recursion console. If this is your first sign-in, Recursion creates your tenant and its Default organization. You need the organization developer or admin role to create agents and environments and to start sessions; see Organizations and roles. Your tenant needs credits to start a session. If it has none, a billing manager can add them on Billing; Pricing explains what a session hour costs. Creating the agent and environment does not start paid work.
1. Create an API key
Skip this step if you use only the console.- In the Recursion console, open Settings and choose API keys, then click Create key.
- Enter a Name, such as
quickstart, and keep the default Expires value. - Set Scope to the Default organization, then click Create key.
- Copy the key. It starts with
rma_and is shown only once.
2. Create an environment
An environment is where the session’s sandbox runs. This one uses the default compute and has no internet access, which is enough for a task that only writes a file.- Console
- cURL
- In the sidebar, click Environments, then click Create environment.
- Enter a Name, such as
quickstart. - Click Create environment.
environment_id. Some fields are left out here:
3. Create an agent
An agent is a model with a system prompt, saved as a version that sessions run.- Console
- cURL
- In the sidebar, click Agents, then click Create agent.
- Under Choose a starting point, click Blank.
- Under General, enter a Name, choose a Model such as Claude Sonnet 5, and write a System prompt, such as
You are a concise writing assistant. - Click Create agent.
agent_id. Some fields are left out here:
4. Start a session
A session runs the agent in the environment on the task in its opening message.- Console
- cURL
- In the sidebar, click Sessions, then click Launch session.
- Under Configuration, select your Agent and Environment.
- Under Task, write the Opening message:
Write a four-line poem about sandboxes and save it as poem.md. - Click Launch session. The session opens while its sandbox starts.
202 Accepted right away. The agent works in the background:
Idempotency-Key is required, so a retried request never starts a second session. Use a new key for each new session. If launch is refused because no credits are available, ask someone who manages billing to add credits, then try again. Your agent and environment remain saved.
5. Read the reply
- Console
- cURL
Read the Transcript as the agent works. It shows messages, tool calls, and results. The session header shows its status and cost. Open the Files tab to preview or download
poem.md.message event with role set to assistant. Some fields are left out here:
status is completed and stop_reason is end_turn. To continue the work, send a follow-up message. See Sessions and Events.
Next steps
Build in the console
Learn where agents, environments, credentials, and sessions live.
API conventions
Learn the shared rules for retries, paging, and errors.
Connect your apps
Let agents work in GitHub, Slack, and other apps.
Automate sessions
Run the same agent on a schedule or when an event arrives.