camelai-agent-runtime
Python SDK for the camelAI hosted agent runtime. Your application defines tools as ordinary functions; the runtime runs the model loop, keeps each agent's history, and executes model-written code in a sandbox that can only call your tools. Tool calls come back to your process, so your data and credentials never leave it.
Requires Python 3.11 or later.
pip install camelai-agent-runtime
import asyncio, os
from camelai_agent_runtime import AgentRuntime, tool
@tool
async def open_tickets():
"""List open support tickets."""
return await db.open_tickets()
async def main():
async with AgentRuntime(url="https://agents.camelai.dev", api_key=os.environ["AGENT_RUNTIME_TOKEN"]) as runtime:
agent = await runtime.create_agent(
name="Support triage", model="anthropic/claude-sonnet-5",
system_prompt="You triage support tickets. Be concise.",
idempotency_key="support-triage", tools=[open_tickets],
)
await agent.prompt("Which open tickets look urgent?")
asyncio.run(main())
Keep the operator or API token on your backend: it can create and control every
agent in your tenant. Sign in at https://agents.camelai.dev/console to add provider
keys, create API tokens and watch agents. The TypeScript SDK is
@camelai/agent-runtime.
Release files for camelai-agent-runtime 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| camelai_agent_runtime-0.1.0.tar.gz | 10.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| camelai_agent_runtime-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.8 kB
Release files / camelai_agent_runtime-0.1.0.tar.gz
| Download URL | camelai_agent_runtime-0.1.0.tar.gz |
|---|---|
| Size | 10.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4828660d17e5b623642d0b436df655398e6b0d5eb281f00f2a44036277531988
|
|
BLAKE2b-256 checksum How to use checksums |
d272424905c1f8276a8742605b65f08f2eecba1089e78c671f0a7b1da2b75a5d
|
| 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 Sep 25, 2026.
Transparency logRelease files / camelai_agent_runtime-0.1.0-py3-none-any.whl
| Download URL | camelai_agent_runtime-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
13742afaf85f2aeed73460eb40e757033dcaca1cb3199a6423d46e921810ad17
|
|
BLAKE2b-256 checksum How to use checksums |
a7ccf3cc073ca83e7dc9cb367bd40e10bcb62f272f59734bde0c4d4b26818e36
|
| 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 Sep 25, 2026.
Transparency log