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

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.4
File Size Uploaded Provenance Actions
cambrian_agent_sdk-0.1.4.tar.gz 99.7 kB With provenance Details for cambrian_agent_sdk-0.1.4.tar.gz

Built distribution (wheel)

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

Total release size: 211.6 kB

Release files / cambrian_agent_sdk-0.1.4.tar.gz

Download URL cambrian_agent_sdk-0.1.4.tar.gz
Size 99.7 kB
Tags Source
SHA-256 checksum
How to use checksums
6b5e73f3f8ca439223123096f1de7074e72dfcfe6f74b7933dde2a4dedf29052
BLAKE2b-256 checksum
How to use checksums
ce051c5028f7ce851d8633ffd2321cb0adafe02a9198c4ba6a1e2b46b6884af9
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 29, 2026.

Transparency log

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

Download URL cambrian_agent_sdk-0.1.4-py3-none-any.whl
Size 111.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
322e0b8ce7212ca46e234c47156c623404f83d6470347ae45c585adab39c8a0d
BLAKE2b-256 checksum
How to use checksums
2dea428542df645538da76f700f9a9aea7d6d9a286a43eb4fb79f5762a74afe8
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 29, 2026.

Transparency log

Security for cambrian-agent-sdk 0.1.4

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.4.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 29, 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