AgentNotes Python SDK
SparkNotes for your AI agents. Install once, set env vars, call AgentNotes.from_env().
Install (PyPI)
pip install aiagentnotes
Optional local .env support:
pip install "aiagentnotes[dotenv]"
Environment variables
See ENV.md for the full list.
Minimum:
export AGENTNOTES_API_KEY="an_xxxxxxxx"
export AGENTNOTES_AGENT_ID="my-bot-slug"
export AGENTNOTES_BASE_URL="https://your-agentnotes.vercel.app"
Quick start
from aiagentnotes import AgentNotes
notes = AgentNotes.from_env()
@notes.track("handle_request")
def handle_request(req):
notes.log("received", data={"id": getattr(req, "id", None)})
notes.complete_run({"summary": "Done"})
Optional: logging only when configured
from aiagentnotes import get_client
notes = get_client()
if notes:
notes.log("bot started")
API
| Method | Description |
|---|---|
AgentNotes.from_env() |
Build client from AGENTNOTES_* env vars |
get_client() |
Same, or None if not configured |
require_client() |
Same, or raise with setup instructions |
notes.log(message, ...) |
Log an event |
notes.complete_run(result) |
Finish run |
notes.track("step") |
Decorator for a step |
Development (this monorepo)
cd sdk && pip install -e ".[dev,dotenv]"
Publish to PyPI
Metadata
Release files for aiagentnotes 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 | Provenance | Actions |
|---|---|---|---|---|
| aiagentnotes-0.1.0.tar.gz | 6.2 kB | With provenance | Details for aiagentnotes-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aiagentnotes-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for aiagentnotes-0.1.0-py3-none-any.whl |
Total release size: 13.9 kB
Release files / aiagentnotes-0.1.0.tar.gz
| Download URL | aiagentnotes-0.1.0.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
af8c26d3e897ea921b9fe8b503e9e0440ad6dcd2ed43a16a9d5ac9a5e9f366f4
|
|
BLAKE2b-256 checksum How to use checksums |
47def3b4972b81af3ba12883dfef1eb56840d6467b1decf694b1bbad47cd290d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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 Jun 3, 2026.
Transparency logRelease files / aiagentnotes-0.1.0-py3-none-any.whl
| Download URL | aiagentnotes-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a9be0bb620f1d97bcac74eb9a150b0b627d8b7fd4ef0bd056f05e7557be56bd6
|
|
BLAKE2b-256 checksum How to use checksums |
6f07ddab0d9d9d3929e1f8b187fd604ab3a637e98b82867ec15dbee50fe7a0f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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 Jun 3, 2026.
Transparency logSecurity for aiagentnotes 0.1.0
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
Both files in this release have been uploaded with provenance metadata.
Attestation for aiagentnotes-0.1.0.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 Jun 3, 2026.
Transparency logA 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.