Skip to main content

Cambrian Agent SDK

Build Cambrian agents in Python with zero boilerplate.

An agent is a small Python class. The SDK gives it a ReAct loop, tool calling, working memory, and a gRPC server that speaks the Cambrian agent-plane contract — you write run() (or just declare @tool methods) and the kernel does the orchestration.

pip install cambrian-agent-sdk      # or: uv pip install cambrian-agent-sdk

Quickstart

from cambrian_agent_sdk import CognitiveAgent

class AnalystAgent(CognitiveAgent):
    role = "You are a rigorous analytical reasoning engine."
    constraints = ("Ground every claim; say so when the context is insufficient.",)

agent = AnalystAgent(agent_id="analyst_agent", description="Analyses and compares information.")

if __name__ == "__main__":
    agent.serve()   # boots the gRPC agent server; the kernel connects and dispatches tasks

The kernel spawns your agent, hands it tasks over the agent plane, and your run()/think() loop can call memory (memory_query), tools (tool_call — kernel-owned or your own @tool methods), and delegate (yield_subgoal) to the planner.

Agent shapes

  • CognitiveAgent — LLM reasoning: run() → think() ReAct loop, memory, and @tool actions.
  • DeterministicAgent — a scripted cell: typed run() only, no reasoning (a fast tool).
  • DaemonAgent — a persistent background producer on the SignalStream contract.

Declare tools with the @tool decorator (auto-injected into the agent's action menu) and capabilities with @capability. See example-agents/ in the repo.

Versioning

The SDK's minor version tracks the agent-plane proto contract it targets. Pin it like any dependency; the vendored gRPC/protobuf gencode is shipped inside the wheel, so you don't run protoc yourself. The runtime requires protobuf>=6.31,<7.

License

Apache-2.0. See LICENSE.

Metadata

Release files for cambrian-agent-sdk 0.1.3

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

Source distribution (sdist)

Source distribution for cambrian-agent-sdk 0.1.3
File Size Uploaded Provenance Actions
cambrian_agent_sdk-0.1.3.tar.gz 81.1 kB With provenance Details for cambrian_agent_sdk-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cambrian-agent-sdk 0.1.3
File Interpreter ABI Platform Actions
cambrian_agent_sdk-0.1.3-py3-none-any.whl Python 3 none any Details for cambrian_agent_sdk-0.1.3-py3-none-any.whl

Total release size: 172.8 kB

Release files / cambrian_agent_sdk-0.1.3.tar.gz

Download URL cambrian_agent_sdk-0.1.3.tar.gz
Size 81.1 kB
Tags Source
SHA-256 checksum
How to use checksums
374a82b62eda58d5f04315239c8b4ea770ed2f5dac1b2df049bc037b61d886cc
BLAKE2b-256 checksum
How to use checksums
938d1292ffe90126a774d7c9f5c354b78afc0f382e8aa7798a2b3d915d6729e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 25, 2026.

Transparency log

Release files / cambrian_agent_sdk-0.1.3-py3-none-any.whl

Download URL cambrian_agent_sdk-0.1.3-py3-none-any.whl
Size 91.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5d0a78a749b459e2b585f7a27f18f94ff4ec89c1879cb33f11bc813889b2d59e
BLAKE2b-256 checksum
How to use checksums
a74dde28dc573ef3f34be70b6881c4ef7e22964361eeb443d7cf7d2ff1cc7179
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 25, 2026.

Transparency log

Security for cambrian-agent-sdk 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for cambrian_agent_sdk-0.1.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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