Skip to main content

localswarm

Parallel AI agents, entirely on your own machine. No cloud, no external services.

pip install localswarm
localswarm run demo
# → dashboard at http://127.0.0.1:8391 (localhost only)

From source: pip install -e . (or uv sync). Start Ollama or LM Studio first and localswarm uses it automatically; set "context_files" in the swarm file to give every agent the project files it should read.

What you get

Feature How
Parallel agents Each agent is a LangGraph thread, run in its own worker thread
Human approval gates interrupt() pauses any agent before risky actions; approve/deny in the dashboard
Checkpoints SqliteSaver persists every step to a local file; resume from any checkpoint
Live dashboard FastAPI + WebSocket in the same process, bound to 127.0.0.1
Tamper-evident audit log Hash-chained, append-only ledger (SQLite); edit or delete any record and the chain breaks. localswarm audit verify walks it in one click

The stack (all local)

  • LangGraph (MIT, pip) — orchestration, checkpoints, interrupts
  • SQLite (stdlib) — one local file for checkpoints + audit log
  • FastAPI/uvicorn (pip) — localhost dashboard
  • Ollama or any local OpenAI-compatible model — the only external process, and it's yours

If no model endpoint is reachable, localswarm falls back to a deterministic offline stub so the swarm (and its gates, dashboard and audit log) still runs.

Verify your audit trail

$ localswarm audit verify localswarm.db
{ "ok": true, "count": 23, "first_bad_seq": null, "reason": "" }

Layout

src/localswarm/audit.py    # hash-chained append-only ledger + verify_chain()
src/localswarm/swarm.py    # parallel agents, approval gates, event bridge
src/localswarm/server.py   # FastAPI + WebSocket dashboard (127.0.0.1)
src/localswarm/cli.py      # localswarm run / audit verify
tests/                     # chain-integrity + full swarm lifecycle tests

MIT. Your data never leaves the machine.

Metadata

Release files for localswarm 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for localswarm 0.1.0
File Size Uploaded Provenance Actions
localswarm-0.1.0.tar.gz 219.8 kB Without provenance Details for localswarm-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for localswarm 0.1.0
File Interpreter ABI Platform Actions
localswarm-0.1.0-py3-none-any.whl Python 3 none any Details for localswarm-0.1.0-py3-none-any.whl

Total release size: 237.6 kB

Release files / localswarm-0.1.0.tar.gz

Download URL localswarm-0.1.0.tar.gz
Size 219.8 kB
Tags Source
SHA-256 checksum
How to use checksums
df88b5d9376159c64310861c5433329dd13ac3b2b5d9e30d72a5353ef273a32e
BLAKE2b-256 checksum
How to use checksums
ca6a8153fc15ade1d0fa5fd5c88b9485d52623bf3d07c78aee9d28607627721d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / localswarm-0.1.0-py3-none-any.whl

Download URL localswarm-0.1.0-py3-none-any.whl
Size 17.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b788598b4bfd7b2c8f54c8151bc75275ca8cf7e5a6cf9655cc1093740667a883
BLAKE2b-256 checksum
How to use checksums
2d167de5a4d538c102997d56dbb5fca3a453da2cb0d2e6d2eb81829c2ac23e2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for localswarm 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.

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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