octopoda 3.3.4
pip install octopoda
Released:
Persistent Memory Kernel for AI Agents โ crash recovery, shared memory, audit trail, real-time dashboard
Navigation
Verified details
These details have been verified by PyPIMaintainers
๐ Avatar for Octapoda from gravatar.comOctapoda
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: RYJOX Technologies
- Tags ai-memory , agent-memory , persistent-memory , langchain , crewai , autogen , openai-agents , crash-recovery , multi-agent , memory-kernel , semantic-search , knowledge-graph , mcp
- Requires: Python >=3.9
-
Provides-Extra:
client,server,mcp,langchain,ai,search,nlp,all-ai,telemetry,monitoring,all,dev
Classifiers
- Development Status
- Intended Audience
- License
- Programming Language
- Topic
Project description
๐ Octopoda
The open-source memory operating system for AI agents.
Persistent memory, loop detection, audit trails, and live observability โ automatic on pip install.
๐ PyPI
๐ Downloads
๐ CI
๐ Smoke
๐ License
๐ Python 3.9+
๐ Stars
๐ oosmetrics Top 3 in Observability
Website ยท Docs ยท Dashboard ยท Quick start ยท MCP
๐ Octopoda dashboard โ 5 agents, 226 ops, 382 loops caught, $12.45 in wasted tokens detected
Live overview from a real fleet. Agent health, operations volume, anomaly stream, and dollars saved by catching loops before they ran the bill.
What is Octopoda
Octopoda is the missing layer between your AI agents and a working production system. Think of it as the brain stem your agents always needed but never had.
You write your agent however you like. Pure Python, LangChain, CrewAI, AutoGen, OpenAI Agents SDK, MCP. Octopoda sits underneath and quietly handles the boring stuff that makes agents actually usable. Persistent memory that survives every restart. Loop detection that flags a stuck agent in seconds with structured signals you can wire into your runtime to pause or alert. A full audit trail of every decision, every memory write, every recovery, with a verifiable hash chain available via the audit-v2 API. A live dashboard that finally lets you see what your agents are doing.
It runs locally with one pip install and zero infrastructure. When you outgrow that, the same code syncs to the cloud with a single environment variable. No re-architecture, no migration, no lock-in. The whole thing is open source under MIT.
If you have ever shipped an AI agent and watched it forget who you are, loop on a failing API call for hours, or just disappear into a black box you cannot debug, this is the thing you wished existed.
Why Octopoda
Three things go wrong when AI agents leave your laptop. Octopoda handles all three out of the box, with no config, so you can focus on the agent and not the plumbing.
Agents forget, until they do not. Every time your process restarts, your agent loses everything it ever knew about the user, the task, and the conversation. Octopoda gives every agent persistent memory that survives restarts, crashes, deployments, and process kills. Memory just works, the way you always assumed it would.
Agents loop, and silently burn money. A stuck agent retrying a failing tool call can quietly burn hundreds of dollars in tokens before anyone notices. Octopoda's loop detector catches retry, oscillation, ping pong, reflection, and recall write patterns in seconds, and surfaces exactly which calls caused it. Detection is automatic on every write; intervention (auto-pause, spend cap) is opt-in via the v2 circuit-breaker config so the right policy is yours to set, not ours.
Agents are black boxes, and that is terrifying in production. Why did it do that? You had no idea, until now. Octopoda logs every decision, every write, every recovery into a replayable audit trail you can diff over time. The dedicated audit-v2 endpoint additionally hash-chains its events (prev_hash โ _this_hash) so you can verify integrity via GET /v1/auditv2/verify-chain. Pair it with the live dashboard and you can finally see what your agents are doing in real time.
Quick Start
pipinstalloctopoda
fromoctopodaimport AgentRuntime agent = AgentRuntime("my_chatbot") agent.remember("user_name", "Alice") # kill the process. restart Python. then: print(agent.recall("user_name").value) # 'Alice' โ still there. Survives every restart, deploy, and crash.
That is the entire setup. Your agent now has persistent memory, loop detection, crash recovery, and an audit trail. No config, no Docker, no Redis, no extra services.
Want the local dashboard?
pipinstalloctopoda[server] octopoda
Open http://localhost:7842 โ the same dashboard as the cloud version, running against your local data. No account, no API key.
Want cloud sync + a hosted dashboard?
One command after install:
octopoda-init
It walks you through: paste an API key (or sign up free at octopodas.com), validates it, and saves it to ~/.octopoda/config.json. No environment variables to set, no shell config to edit. The SDK auto-loads the key on next import.
After octopoda-init, the same Python code above writes to the cloud and shows up live at octopodas.com/dashboard.
Local vs Cloud โ same code, your choice
| Local | Cloud | |
|---|---|---|
| Setup | pip install octopoda |
Sign up at octopodas.com (free) |
| Storage | SQLite on your machine | PostgreSQL + pgvector |
| Dashboard | http://localhost:7842 | octopodas.com/dashboard |
| Account | Not needed | Free, then optional paid tiers |
| Multi-device sync | No | Yes |
| Semantic search | octopoda[ai] extra (33 MB) |
Built-in |
| Upgrade path | Set OCTOPODA_API_KEY |
Already there |
Start local. Move to cloud when you need sync, team access, or the managed dashboard. Same Python API both ways.
How it stacks up
| Octopoda | Mem0 | Zep | LangChain Memory | |
|---|---|---|---|---|
| Open source | MIT | Apache 2.0 | Partial (CE) | MIT |
| Local-first | Yes (SQLite) | Cloud-first | Cloud-first | In process |
| Loop detection | 5 signal engine | No | No | No |
| Agent messaging | Built in | No | No | No |
| Audit trail | Hash chained (audit v2) | No | No | No |
| Crash recovery | Snapshots + restore | N/A | No | No |
| Shared memory | Built in | No | No | No |
| MCP server | 29 tools | No | No | No |
| Semantic search | Local embeddings | Cloud embeddings | Cloud embeddings | Needs vector DB |
| Framework integrations | LangChain, CrewAI, AutoGen, OpenAI Agents SDK | LangChain | LangChain | Own only |
What You Get Out of the Box
When you create an AgentRuntime, all of this runs in the background, automatically:
| Feature | What it does |
|---|---|
| Persistent memory | Survives restarts, crashes, deployments. Versioned by default. |
| Loop detection | 5-signal engine catches retry, oscillation, ping-pong, reflection, recall. |
| Audit trail | Every write hashed and chained. Replayable, verifiable. |
| Crash recovery | Automatic snapshots and heartbeat-based restore. |
| Health scoring | Continuous performance and memory quality monitoring per agent. |
| Goal tracking | Set goals and milestones per agent (agent.set_goal()). |
You don't configure any of it. It just works.
See Inside Your Agents
Track latency, error rates, memory usage, and health scores for every agent โ with the same dashboard locally and in cloud.
Browse every memory the agent ever wrote, inspect version history, and see exactly how its knowledge changed over time.
Audit Trail
Every decision, crash, recovery, and anomaly your agents make is logged with full context โ including a memory snapshot captured at the moment of decision. Replay any time window and see exactly what each agent knew, decided, and why.
agent.log_decision( decision="Keep single VPS instead of Kubernetes", reasoning="Current traffic doesn't justify K8s complexity. VPS handles 100x this load.", context={"current_rps": 14000, "threshold_rps": 1000000}, )
Every log_decision automatically captures a memory snapshot at that instant. The audit timeline shows decisions alongside crashes and recoveries, filterable per agent. Built-in similarity check warns you if a decision repeats a recent one.
Events logged via the audit-v2 endpoints (POST /v1/auditv2/log, GET /v1/auditv2/events) are hashed and chained per agent (prev_hash โ _this_hash). Run GET /v1/auditv2/verify-chain to confirm integrity โ it returns ok=true plus a per-agent breakdown. The legacy log_decision() SDK call writes a simpler audit row without the chain; route through the audit-v2 endpoint if you need tamper-evident provenance.
Shared Memory
Multiple agents working on the same problem can share knowledge through named memory spaces. Writes are atomic, reads are immediate, and every change is logged with its author โ so you always know which agent contributed what.
research_agent.share("market_size", "$2.1B AI memory market by 2027", space="team-knowledge") result = coding_assistant.read_shared("market_size", space="team-knowledge") print(result.value) # "$2.1B AI memory market by 2027"
Spaces track authorship and timestamps for every write. Use agent.shared_conflicts(space="team-knowledge") to surface disagreements when multiple agents write to the same key.
When You Need More Control
Everything below is optional. Use it when you need it.
Semantic Search
Find memories by meaning, not just exact keys.
agent.remember("bio", "Alice is a vegetarian living in London") results = agent.recall_similar("what does the user eat?") # Returns the right memory with a similarity score
Note: In cloud mode, embeddings are computed server-side and this works out of the box. In local mode, install the AI extra (
pip install octopoda[ai]) so the local embedding model (~33 MB) can run. Without it,recall_similarreturns 0 results in local mode and logs a warning.
Agent Messaging
Agents can talk to each other through shared inboxes.
agent_a.send_message("agent_b", "Found a bug in auth", message_type="alert") messages = agent_b.read_messages(unread_only=True)
Goal Tracking
Set goals and track progress per agent.
agent.set_goal("Migrate to PostgreSQL", milestones=["Backup", "Schema", "Migrate", "Validate"]) agent.update_progress(milestone_index=0, note="Backup done")
Memory Management
agent.forget("outdated_config") # Delete a specific memory agent.forget_stale(max_age_seconds=30*86400) # Clean up memories older than 30 days agent.consolidate(dry_run=False) # Merge near-duplicates agent.memory_health() # Get a health report
Snapshots and Recovery
agent.snapshot("before_migration") # ... something goes wrong ... agent.restore("before_migration")
Export / Import
bundle = agent.export_memories() new_agent.import_memories(bundle)
Framework Integrations
Drop into the framework you already use. One line, your agents get persistent memory.
All integrations work locally (no API key) or with cloud sync (set OCTOPODA_API_KEY).
MCP Server
Give Claude, Cursor, or any MCP-compatible AI persistent memory with zero code.
pipinstalloctopoda[mcp]
Claude Code:
claudemcpaddoctopoda-suser-eOCTOPODA_API_KEY=sk-octopoda-YOUR_KEY--python-msynrix_runtime.api.mcp_server
Claude Desktop (claude_desktop_config.json):
{ "mcpServers":{ "octopoda":{ "command":"python", "args":["-m","synrix_runtime.api.mcp_server"], "env":{"OCTOPODA_API_KEY":"sk-octopoda-YOUR_KEY"} } } }
28 tools for memory, search, loop detection, goals, messaging, decisions, snapshots, and more.
Cloud
Sign up free at octopodas.com for the dashboard, managed hosting, and cloud API.
fromoctopodaimport Octopoda client = Octopoda() # Uses OCTOPODA_API_KEY env var agent = client.agent("my_agent") agent.write("preference", "dark mode") results = agent.search("user preferences")
| Free | Pro ($19/mo) | Business ($49/mo) | Scale ($99/mo) | |
|---|---|---|---|---|
| Agents | 5 | 25 | 75 | Unlimited |
| Memories | 5,000 | 250,000 | 1,000,000 | 5,000,000 |
| AI extractions | 100 | 10,000 | 50,000 | Unlimited |
| Rate limit | 60 rpm | 300 rpm | 1,000 rpm | 5,000 rpm |
| Loop detection | Basic | Full v2 | Full v2 | Full v2 |
| Shared spaces | 1 | 5 | Unlimited | Unlimited |
| Dashboard | Yes | Yes | Yes | Yes |
| Support | Community | Email (48h) | Priority | Dedicated |
Installation
pipinstalloctopoda# Core โ everything to get started (Python 3.9+) pipinstalloctopoda[ai]# + Local embeddings for semantic search pipinstalloctopoda[server]# + Local dashboard server (Flask) pipinstalloctopoda[nlp]# + spaCy for knowledge graph extraction pipinstalloctopoda[mcp]# + MCP server for Claude/Cursor (Python 3.10+) pipinstalloctopoda[all]# Everything (Python 3.10+)
Python version note: the core package supports Python 3.9 and up. The
[mcp]extra requires Python 3.10+ because the upstreammcplibrary does. If you're on 3.9 and want everything except MCP, usepip install octopoda[ai,server,nlp].
Local-mode note: running without an API key (
pip install octopodaonly) gives you a fully working local install with SQLite at~/.synrix/data/synrix.db. TheOCTOPODA_API_KEYenvironment variable accepts the sentinelslocal,offline,dev,none, orYOUR_KEY_HEREto explicitly force local mode. Real cloud keys start withsk-octopoda-; anything else is treated as a local sentinel rather than hung on cloud auth.
Updating Claude Code MCP registration: if you change the
claude mcp add octopoda ...env vars (for example, swapping from local to cloud), restart the Claude Code window./mcpreconnect alone won't pick up the new env because the child process inherits Claude Code's cached env at startup.
Configuration
| Variable | Default | Description |
|---|---|---|
OCTOPODA_API_KEY |
Cloud API key (free at octopodas.com) | |
OCTOPODA_LICENSE_KEY |
License key for higher tiers (optional) | |
OCTOPODA_LLM_PROVIDER |
none |
openai, anthropic, ollama |
OCTOPODA_OPENAI_API_KEY |
Your OpenAI key for local fact extraction | |
OCTOPODA_EMBEDDING_MODEL |
BAAI/bge-small-en-v1.5 |
Local embedding model (33 MB, runs on CPU) |
SYNRIX_DATA_DIR |
~/.synrix/data |
Local data directory (where SQLite + embeddings live) |
OCTOPODA_LOCAL_MODE |
unset | Set to 1 to force local mode regardless of OCTOPODA_API_KEY |
SYNRIX_HEARTBEAT_INTERVAL_SEC |
3 |
Daemon heartbeat polling interval (raise for low-resource boxes) |
SYNRIX_MAX_VERSIONS_PER_RUNTIME_KEY |
10 |
Schema-level cap on runtime:* / metrics:* key versions |
Contributing
See CONTRIBUTING.md for setup and guidelines.
Security
See SECURITY.md for reporting vulnerabilities.
๐ MseeP.ai Security Assessment Badge
License
MIT, use it however you want. See LICENSE.
Verification harnesses
The repo ships four scripts under scripts/integration/ that exercise the product end to end against both a fresh PyPI install and live api.octopodas.com:
audit_verify_3_1_13.py: live HTTP probes against production. Currently 12 of 12 pass.mcp_stdio_harness.py: drivesoctopoda-mcpover JSON RPC the way Claude Code does. 7 of 7 pass.user_simulation.py: fresh venv,pip install octopodafrom PyPI, exercises every SDK path.local_dashboard_smoke.py: proves the bundled dashboard serves byte identical assets tooctopodas.com/dashboard.
Anyone can clone and rerun them.
Built by RYJOX Technologies ยท PyPI ยท Cloud API ยท Dashboard
Project details
Verified details
These details have been verified by PyPIMaintainers
๐ Avatar for Octapoda from gravatar.comOctapoda
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: RYJOX Technologies
- Tags ai-memory , agent-memory , persistent-memory , langchain , crewai , autogen , openai-agents , crash-recovery , multi-agent , memory-kernel , semantic-search , knowledge-graph , mcp
- Requires: Python >=3.9
-
Provides-Extra:
client,server,mcp,langchain,ai,search,nlp,all-ai,telemetry,monitoring,all,dev
Classifiers
- Development Status
- Intended Audience
- License
- Programming Language
- Topic
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file octopoda-3.3.4.tar.gz.
File metadata
- Download URL: octopoda-3.3.4.tar.gz
- Upload date:
- Size: 7.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21060d3a8a8eb51cdbd4057ed76f7454d3b588a7177ee14d71d52f73a941f630
|
|
| MD5 |
bcba818b7b06db5e883a50b5fb56760b
|
|
| BLAKE2b-256 |
5abcff83016948d2ba6354bb44dd07110260e214c48455330d38bbc3d55506be
|
File details
Details for the file octopoda-3.3.4-py3-none-any.whl.
File metadata
- Download URL: octopoda-3.3.4-py3-none-any.whl
- Upload date:
- Size: 7.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b86a1248d5a483d3a5ad6ffca2a43bae09fafb420f3411349239ca2f66249965
|
|
| MD5 |
5c91d625ed2ebbc1338e05c7783b79cc
|
|
| BLAKE2b-256 |
c9c5e0da9b4ab865de76029482ddde6ee67db8a8d9603546cddea48016327d0f
|
