Skip to main content

AgentOS SDK

Unified Python SDK for AgentOS platform (the Firewall for AI Agents). All policy checks and telemetry route through the AgentOS Platform API (default: https://app.agentosai.org).

Install

pip install agentos-client

After installing, you can log in to the platform (assuming you have created an account in https://app.agentosai.org):

agentos login

CLI Usage

# Init a starter agent project
agentos init my-agent --template llm

# Build a tarball to deploy
cd my-agent
agentos build . -o my-agent.tar.gz

# Deploy to the platform
agentos deploy my-agent.tar.gz --name my-agent

# List and invoke
agentos list
agentos invoke <agent-id> --payload '{"message": "hello"}'
agentos logs <invocation-id> --follow

SDK Usage

from agentos.sdk import Agent, PolicyDeniedError

agent = Agent(
    agent_id="my-remote-agent",
    tags=["pii_strict"],
)

try:
    text = agent.llm("Summarize our Q3 performance.")
finally:
    agent.complete(result={"ok": True})

Release files for agentos-client 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agentos-client 0.1.0
File Size Uploaded
agentos_client-0.1.0.tar.gz 13.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for agentos-client 0.1.0
File Interpreter ABI Platform
agentos_client-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 29.0 kB

Release files / agentos_client-0.1.0.tar.gz

Download URL agentos_client-0.1.0.tar.gz
Size 13.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5b88d587ff5ec0c11b908b5ac2afce7ec38917fb9b3b307cee0c588efa733698
BLAKE2b-256 checksum
How to use checksums
b994bb8f2dc385d9c80e57dfbc054ee62d2c1ce462c82f183018e92bc42f16fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

Release files / agentos_client-0.1.0-py3-none-any.whl

Download URL agentos_client-0.1.0-py3-none-any.whl
Size 15.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4d2f131c8e98685a049de6e61a6f5aa3e1c7bd32869f77159f64956f2da04d28
BLAKE2b-256 checksum
How to use checksums
6c4520ec07688074017f3e0998a75a5bdd2e067b816b68c8e4f32973a1c6057b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page