agenthelm-sdk (v1.1.3)
Python SDK for AgentHelm — The Control Plane for AI Agents.
Monitor, dispatch, and control your AI agents from your phone or dashboard.
Install
pip install agenthelm-sdk
Features
- 🛡️ Safety Firewall: Mark tools as
@read,@side_effect, or@irreversible(HIL). - ⚡️ One-line Integration: Add
agenthelm.connect()and you're live. - 🛰️ Remote Dispatch: Trigger functions in your agent via Telegram or Dashboard.
- 📊 Token Tracking: Real-time monitoring of LLM costs and usage (INR/USD).
- 🛰️ Integrity Checkpoints: Save/Resume agent state with SHA256 hashing.
- 🤝 Handshake Protocol: Secure, JWT-based authentication.
- 🧠 Project Brain Context: Read versioned, queryable context from your Project Brain (
agent.get_context()). - 📝 Brain Compiler Proposals: Propose new knowledge, code changes, and decisions to the Brain Compiler (
agent.propose_knowledge()). - 🤝 Swarm Coordination: Build and orchestrate multi-agent swarms with parent/child tracking.
- 💾 Workspace State Locking: Claim files and prevent conflict overrides across concurrent agent runs (
agent.claim_file()).
Usage (Standard)
from agenthelm import Agent
# Connect your agent
agent = Agent(
key="ahe_live_...",
name="Lead Researcher",
version="1.0.0"
)
# Log events
agent.log("Agent is active", level="info")
# Track LLM costs
agent.track_tokens(used=500, model="gpt-4o", cost_per_1k=0.01)
🛡️ Safety Firewall (Classification-First)
Protect your mission-critical functions by classifying them.
# 1. Read-only (Always safe, no gating)
@agent.read()
def get_weather(city):
return weather_api.fetch(city)
# 2. Side Effect (Logs and retries, but non-blocking)
@agent.side_effect(max_retries=3)
def send_email(to, subject):
return mail.send(to, subject)
# 3. Irreversible (BLOCKS until approved by Human via Telegram/Dashboard)
@agent.irreversible(confirm="telegram", timeout=60)
def delete_database_record(record_id):
return db.delete(record_id)
Handling Dispatch
@agent.on_dispatch
def handle_research(task):
agent.progress("Starting research...")
# Your logic here
return {"status": "complete", "leads": 5}
agent.listen()
All Methods
| Method | Args | Description |
|---|---|---|
| log(msg, level) | level: info/warning/error/success | Send log |
| output(data, label) | data: dict | Send structured output |
| track_tokens(used, model, cost_per_1k) | used: int | Track usage + cost |
| warn(msg) | msg: str | Warning shortcut |
| error(msg) | msg: str | Error shortcut |
| success(msg) | msg: str | Success shortcut |
| stop() | — | Mark agent stopped |
Handshake Protocol
AgentHelm uses a high-performance handshake protocol. On startup, the SDK pings the server with your connect_key to receive a short-lived JWT Session Token. All subsequent telemetry (logs, tokens) uses this token, allowing for stateless, sub-millisecond verification without database overhead.
Documentation & Dashboard
For full documentation and to get your API key, visit: https://agenthelm.online
Metadata
Release files for agenthelm-sdk 1.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| agenthelm_sdk-1.1.3.tar.gz | 31.4 kB | Without provenance | Details for agenthelm_sdk-1.1.3.tar.gz |
Release files / agenthelm_sdk-1.1.3.tar.gz
| Download URL | agenthelm_sdk-1.1.3.tar.gz |
|---|---|
| Size | 31.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
faae870f799c095db09e3e3f7dc8aeb13d08965f8b025ab7bace9341eb7c2368
|
|
BLAKE2b-256 checksum How to use checksums |
f38c259aa4491150abc2dc76040b33701f95d730a6c06231a03a1b1e94ac00a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.12
|
Security for agenthelm-sdk 1.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.