Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 1003 Bytes

README.md

File metadata and controls

41 lines (31 loc) · 1003 Bytes

Create Agent CLI

This example shows how to wrap the Python SDK in a small CLI for creating an agent.

The SDK call is intentionally direct:

with PlatformClient.with_token(api_key, token, base_url=base_url) as client:
    agent = client.agents.create({...})

Run

export ARCHASTRO_API_KEY=pk_...
export ARCHASTRO_ACCESS_TOKEN=sat_...

uv run python examples/create_agent_cli/main.py \
  --name "Demo Agent" \
  --identity "You are a concise assistant for onboarding users."

To create the agent under a specific org or team:

uv run python examples/create_agent_cli/main.py \
  --name "Team Demo Agent" \
  --identity "You help the team answer support questions." \
  --org org_... \
  --team team_...

For local development or another environment:

export ARCHASTRO_PLATFORM_BASE_URL=http://localhost:4000
uv run python examples/create_agent_cli/main.py \
  --name "Local Demo Agent" \
  --identity "You are running from the Python SDK example."