ara-python-sdk, not internal app-runtime implementation code.
Python SDK links: GitHub repository · ara-sdk on PyPI
Core model
The public SDK is intentionally agent-first:- Define with
App(project_name),@app.agent,@app.tool,@app.schedule,@fastapi_endpoint, and runtime helpers (runtime,sandbox,Secret) - Schedule with
@app.schedule(...)(orschedule.cron/every(...)) and target buildersinvoke.agent(...)/invoke.tool(...) - Operate with
AraClient(deploy,run,run_async,events,setup) or standaloneara <command> app.py
Basic primitives
Think of the SDK as one composition model with a few core building blocks:App(...): app identity + defaults (interfaces,runtime_profile) whereproject_nameis DNS-safe ([a-z0-9-])@app.agent(...): runnable unit; agent id defaults to function name, and function returns the runtime prompt string@app.schedule(...): attach static schedules directly to an agent/tool declaration (cron,at)@fastapi_endpoint(...): expose an agent behind a manifest-driven HTTP endpoint (none,header,bearer,hmac)@app.tool(...): model-facing function schema + deterministic Python source executed by runtime; id defaults to function name and description uses the function docstringschedule+invoke: one schedule shape for static definitions and dynamic creation payloadsscheduler.create(...): buildsautomation_createpayloads from the same schedule specaraCLI /AraClient: deploy and invoke app agents
@app.task, @app.subagent, or @app.hook primitive.
Recommended pattern
FAQ
Runtime auth model
- Control plane calls (
/apps/*) use:ARA_API_KEY- legacy
ARA_ACCESS_TOKEN - credentials from
ara auth login(~/.ara/credentials.json)
- Runtime invoke calls (
/v1/apps/{app_id}/run,/v1/apps/{app_id}/events) use runtime key and/or app header key auth - FastAPI endpoint calls (
/v1/apps/{app_id}/endpoints/{endpoint_label}) use per-endpoint auth (none|header|bearer|hmac) deploymints and returns aruntime_key; export it asARA_RUNTIME_KEY(or pass--runtime-key)setup-authmints and returns anapp_header_key; export it asARA_APP_HEADER_KEY(or pass--app-header-key)ara start,ara status, andara stopare global aliases forara runtime session start|status|stopara auth logoutclears stored CLI auth credentials- Local secret declarations are synced on deploy via
/apps/{app_id}/secrets - Connector inheritance for app-runtime turns is isolated by default (
interfaces.inherit_owner_tools=false)
Where to go next
Quickstart
Install, configure env, and run the full deploy/run/events loop.
SDK Reference
Exact exported surface, decorators, CLI, env vars, and endpoint map.
Detailed SDK Reference
Method-focused pages for App, AraClient, Secret, and helper functions.
Examples
Public examples and integration harnesses.
