Skip to main content

Python SDK for the Chester AI agent platform

Project description

chester-ai

Python SDK for the Chester AI agent platform. Full typed access to all 27 gRPC services.

Install

pip install chester-ai
# or
uv add chester-ai

Quick Start

from chester_ai import ChesterClient, proto

chester = ChesterClient(url="localhost:8990", api_key="cht_your_api_key_here")

# List all agents
response = chester.agents.ListAgents(proto.ListAgentsRequest())
for agent in response.agents:
    print(agent.name)

# Send a task to an agent
response = chester.queue.SendTask(proto.SendTaskRequest(
    agent="mybot",
    prompt="Summarize today's news",
))
print("Task queued:", response.task_id)

# Stream chat responses
for chunk in chester.agents.ChatWeb(proto.ChatStreamRequest(
    agent="mybot",
    user_message="Hello!",
)):
    print(chunk.content, end="")

# Subscribe to real-time events
for event in chester.events.SubscribeAll(proto.SubscribeAllRequest()):
    print(event.domain, event.event_type)

Async Usage

import asyncio
from chester_ai import AsyncChesterClient, proto

async def main():
    async with AsyncChesterClient(url="localhost:8990", api_key="cht_abc123") as chester:
        response = await chester.agents.ListAgents(proto.ListAgentsRequest())
        for agent in response.agents:
            print(agent.name)

asyncio.run(main())

Authentication

Chester uses Bearer tokens. Create one via the CLI:

chester auth create-token --name "my-app" --role operator

Services

All 27 Chester services are available as typed properties:

chester.agents, chester.queue, chester.decisions, chester.cron, chester.plans, chester.teams, chester.skills, chester.mcp, chester.daemon, chester.events, chester.context, chester.tools, chester.db, chester.temporal, chester.auth, chester.users, chester.goals, chester.capabilities, chester.templates, chester.organizations, chester.workflow_templates, chester.guardrails, chester.kanban, chester.observe, chester.datasets, chester.twins, chester.integrations

Requirements

  • Python 3.10+
  • Chester daemon running (default port 8990)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chester_ai-0.1.1.tar.gz (115.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chester_ai-0.1.1-py3-none-any.whl (99.8 kB view details)

Uploaded Python 3

File details

Details for the file chester_ai-0.1.1.tar.gz.

File metadata

  • Download URL: chester_ai-0.1.1.tar.gz
  • Upload date:
  • Size: 115.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.3

File hashes

Hashes for chester_ai-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e8c80fe3171365cc1ad0f62138c9636cfaf8b159748cf344a7fce8946d1f24de
MD5 c7a7c76f188743f05734a13cffc5a990
BLAKE2b-256 4565613492648a94b7d5a3c6120bc549c6a39ca0737000bb2b20537af02800ab

See more details on using hashes here.

File details

Details for the file chester_ai-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: chester_ai-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 99.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.3

File hashes

Hashes for chester_ai-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1df028cf3b3c696a7c56e254d7a6c53c8f157bce83f907e019d63e9f17089904
MD5 b30bd68be6aa684cb2a2aaa91957107f
BLAKE2b-256 026137b3aff7bed78f862f7375d484dec16fd7085c1d577dcb73cab5dc5ba8c2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page