Current collected state Current
Observed since 20 Oct, 15:21 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Server-side Python SDK for 21st Agents
Server-side Python SDK for 21st Agents. Manage sandboxes, threads, and tokens programmatically.
Method arguments use Python-style snake_case, but SDK responses keep the relay's camelCase field names.
pip install 21st-sdk
import os
from twentyfirst_sdk import AgentClient
client = AgentClient(api_key=os.environ["API_KEY_21ST"]) # an_sk_...
# Create a sandbox for your agent
sandbox = client.sandboxes.create(agent="my-agent")
# Create a thread
thread = client.threads.create(sandbox_id=sandbox.id, name="Review PR #42")
# Generate a short-lived token for browser clients
token = client.tokens.create(agent="my-agent", expires_in="1h")
print(token.expiresAt)
AgentClient(api_key, base_url=...)AgentClient(
api_key="...", # Your an_sk_ API key
base_url="...", # Optional, default: "https://relay.an.dev"
)
client.sandboxes| Method | Description |
|---|---|
create(agent=...) | Create a new sandbox for an agent |
get(sandbox_id) | Get sandbox details (status, threads, agent info) |
delete(sandbox_id) | Delete a sandbox |
exec(sandbox_id, command, ...) | Run a command in a sandbox |
files.write(sandbox_id, files) | Write files into a sandbox |
files.read(sandbox_id, path) | Read a file from a sandbox |
git.clone(sandbox_id, url, ...) | Clone a repository into a sandbox |
client.threads| Method | Description |
|---|---|
list(sandbox_id) | List all threads in a sandbox |
create(sandbox_id, name=...) | Create a new thread |
get(sandbox_id, thread_id) | Get thread with messages |
delete(sandbox_id, thread_id) | Delete a thread |
run(agent, messages, ...) | Run a thread and return the raw streaming response |
client.tokens| Method | Description |
|---|---|
create(agent=..., user_id=..., expires_in=...) | Create a short-lived JWT (default: "1h") |
MIT
pypistats · 63 observations shown. Missing days are unknown. Source category: overall: without mirrors.
| Date / source period | Value | Observed at |
|---|---|---|
| 2026-10-19 – 2026-10-19 | 1 | 2026-10-20T17:53:28.2689254Z |
| 2026-10-18 – 2026-10-18 | 2 | 2026-10-20T17:53:28.2689254Z |
| 2026-10-17 – 2026-10-17 | 1 | 2026-10-20T17:53:28.2689254Z |
| 2026-10-16 – 2026-10-16 | 1 | 2026-10-20T17:53:28.2689254Z |
| 2026-10-15 – 2026-10-15 | 2 | 2026-10-20T17:53:28.2689254Z |
| 2026-10-13 – 2026-10-13 | 1 | 2026-10-20T17:53:28.2689254Z |
| 2026-10-10 – 2026-10-10 | 3 | 2026-10-20T17:53:28.2689254Z |
| 2026-10-09 – 2026-10-09 | 8 | 2026-10-20T17:53:28.2689254Z |
| 2026-10-08 – 2026-10-08 | 1 | 2026-10-20T17:53:28.2689254Z |
| 2026-10-07 – 2026-10-07 | 1 | 2026-10-20T17:53:28.2689254Z |
| 2026-10-06 – 2026-10-06 | 1 | 2026-10-20T17:53:28.2689254Z |
| 2026-10-04 – 2026-10-04 | 1 | 2026-10-20T17:53:28.2689254Z |
| 2026-10-01 – 2026-10-01 | 2 | 2026-10-20T17:53:28.2689254Z |
| 2026-09-30 – 2026-09-30 | 3 | 2026-10-20T17:53:28.2689254Z |
| 2026-09-29 – 2026-09-29 | 8 | 2026-10-20T17:53:28.2689254Z |
| 2026-09-28 – 2026-09-28 | 3 | 2026-10-20T17:53:28.2689254Z |
| 2026-09-27 – 2026-09-27 | 4 | 2026-10-20T17:53:28.2689254Z |
| 2026-09-26 – 2026-09-26 | 19 | 2026-10-20T17:53:28.2689254Z |
| 2026-09-25 – 2026-09-25 | 4 | 2026-10-20T17:53:28.2689254Z |
| 2026-09-24 – 2026-09-24 | 10 | 2026-10-20T17:53:28.2689254Z |
| 2026-09-23 – 2026-09-23 | 3 | 2026-10-20T17:53:28.2689254Z |
| 2026-09-21 – 2026-09-21 | 5 | 2026-10-20T17:53:28.2689254Z |
| 2026-09-20 – 2026-09-20 | 11 | 2026-10-20T17:53:28.2689254Z |
| 2026-09-19 – 2026-09-19 | 1 | 2026-10-20T17:53:28.2689254Z |
| 2026-09-18 – 2026-09-18 | 10 | 2026-10-20T17:53:28.2689254Z |
| 2026-09-16 – 2026-09-16 | 1 | 2026-10-20T17:53:28.2689254Z |
| 2026-09-12 – 2026-09-12 | 1 | 2026-10-20T17:53:28.2689254Z |
| 2026-09-10 – 2026-09-10 | 1 | 2026-10-20T17:53:28.2689254Z |
| 2026-09-09 – 2026-09-09 | 3 | 2026-10-20T17:53:28.2689254Z |
| 2026-09-07 – 2026-09-07 | 1 | 2026-10-20T17:53:28.2689254Z |
| 2026-09-05 – 2026-09-05 | 3 | 2026-10-20T17:53:28.2689254Z |
| 2026-09-03 – 2026-09-03 | 1 | 2026-10-20T17:53:28.2689254Z |
| 2026-08-31 – 2026-08-31 | 3 | 2026-10-20T17:53:28.2689254Z |
| 2026-08-29 – 2026-08-29 | 1 | 2026-10-20T17:53:28.2689254Z |
| 2026-08-28 – 2026-08-28 | 11 | 2026-10-20T17:53:28.2689254Z |
| 2026-08-24 – 2026-08-24 | 14 | 2026-10-20T17:53:28.2689254Z |
| 2026-08-23 – 2026-08-23 | 7 | 2026-10-20T17:53:28.2689254Z |
| 2026-08-22 – 2026-08-22 | 1 | 2026-10-20T17:53:28.2689254Z |
| 2026-08-21 – 2026-08-21 | 2 | 2026-10-20T17:53:28.2689254Z |
| 2026-08-20 – 2026-08-20 | 3 | 2026-10-20T17:53:28.2689254Z |
| 2026-08-19 – 2026-08-19 | 2 | 2026-10-20T17:53:28.2689254Z |
| 2026-08-18 – 2026-08-18 | 56 | 2026-10-20T17:53:28.2689254Z |
| 2026-08-17 – 2026-08-17 | 13 | 2026-10-20T17:53:28.2689254Z |
| 2026-08-16 – 2026-08-16 | 1 | 2026-10-20T17:53:28.2689254Z |
| 2026-08-15 – 2026-08-15 | 1 | 2026-10-20T17:53:28.2689254Z |
| 2026-08-14 – 2026-08-14 | 5 | 2026-10-20T17:53:28.2689254Z |
| 2026-08-13 – 2026-08-13 | 8 | 2026-10-20T17:53:28.2689254Z |
| 2026-08-10 – 2026-08-10 | 2 | 2026-10-20T17:53:28.2689254Z |
| 2026-08-09 – 2026-08-09 | 5 | 2026-10-20T17:53:28.2689254Z |
| 2026-08-07 – 2026-08-07 | 1 | 2026-10-20T17:53:28.2689254Z |
| 2026-08-06 – 2026-08-06 | 1 | 2026-10-20T17:53:28.2689254Z |
| 2026-08-04 – 2026-08-04 | 9 | 2026-10-20T17:53:28.2689254Z |
| 2026-08-03 – 2026-08-03 | 16 | 2026-10-20T17:53:28.2689254Z |
| 2026-08-02 – 2026-08-02 | 1 | 2026-10-20T17:53:28.2689254Z |
| 2026-08-01 – 2026-08-01 | 1 | 2026-10-20T17:53:28.2689254Z |
| 2026-07-31 – 2026-07-31 | 1 | 2026-10-20T17:53:28.2689254Z |
| 2026-07-30 – 2026-07-30 | 3 | 2026-10-20T17:53:28.2689254Z |
| 2026-07-29 – 2026-07-29 | 15 | 2026-10-20T17:53:28.2689254Z |
| 2026-07-27 – 2026-07-27 | 2 | 2026-10-20T17:53:28.2689254Z |
| 2026-07-25 – 2026-07-25 | 2 | 2026-10-20T17:53:28.2689254Z |
| 2026-07-24 – 2026-07-24 | 2 | 2026-10-20T17:53:28.2689254Z |
| 2026-07-23 – 2026-07-23 | 3 | 2026-10-20T17:53:28.2689254Z |
| 2026-07-22 – 2026-07-22 | 6 | 2026-10-20T17:53:28.2689254Z |
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.0.5 | 6 Apr 2026 | 1 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 15:21 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:1d1b14a9c5961a2d4ee7a4d488e2e831ebdfa5f2fe1d7df8a40d3dd7cc170de4