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.5

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.5
File Size Uploaded Provenance Actions
cambrian_agent_sdk-0.1.5.tar.gz 107.1 kB With provenance Details for cambrian_agent_sdk-0.1.5.tar.gz

Built distribution (wheel)

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

Total release size: 226.9 kB

Release files / cambrian_agent_sdk-0.1.5.tar.gz

Download URL cambrian_agent_sdk-0.1.5.tar.gz
Size 107.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ec4ccf14d2b2c97b9c52d35258f5c6f093d241a8a76139673331602335280ee9
BLAKE2b-256 checksum
How to use checksums
84a2f9c1c5ffa9d9e8acbd5c594ece364edb0569147950be9add8f64b4cb1757
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.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 Aug 11, 2026.

Transparency log

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

Download URL cambrian_agent_sdk-0.1.5-py3-none-any.whl
Size 119.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e5dcf1faa209df7fdda4afde8f166ace9846f2c2a537b8bc872fa2e33cfca473
BLAKE2b-256 checksum
How to use checksums
74cd17d9fec1e3d3eca4549cd0da24454a5b982349736bc7f4b8be1cc75b568f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.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 Aug 11, 2026.

Transparency log

Security for cambrian-agent-sdk 0.1.5

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.5.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 Aug 11, 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