Skip to main content

Lohra

A self-improving AI agent runtime — persistent memory, self-authored skills, and a declarative multi-agent workflow harness with Claude-Code-grade rigor. Runs headless: CLI, structured orchestration envelope, and an OpenAI-compatible server. No UI required.

pip install lohra          # Python 3.11–3.13
lohra chat "hello"

Four entry points, none of them a UI

Port Command For
Human CLI lohra chat you, in a terminal
Orchestration envelope lohra chat --json other agents/scripts — one parseable JSON per turn (input/output/reasoning/tool_calls/usage)
OpenAI-compatible API lohra serve any OpenAI client becomes a Lohra client
WS/REST gateway lohra dashboard optional, only if a UI attaches

What makes it interesting

  • Dynamic workflows as inert data: the agent authors a typed DAG (10 node types — agent, parallel, pipeline, loop_until_dry, verify, judge_panel, gate, completeness_check, checkpoint, nested workflow) that an interpreter runs. No agent-authored code is ever executed; escape is inexpressible, not forbidden.
  • Failure is never silent: every failure path produces a fault with its cause; run status is honest (complete | degraded | failed | cancelled | paused).
  • Never pay twice: content-addressed per-cell cache — a resumed run replays completed work at zero token cost, across process restarts.
  • Human in the loop: checkpoint nodes pause a run until a person answers — in another terminal, another process, another day. Durable state + single-winner leases.
  • Cost control: token budgets with soft pre-spawn gates, quota pauses with auto-resume, per-node model/effort/provider routing, operator-owned model tiers.
  • Self-improving: persistent memory, self-authored skills, and a workflow library that turns clean runs into reusable templates and bad runs into recorded priors.
  • Leaf sandbox: filesystem allowlist (ro/rw), egress allowlist, and taint tracking — operator policy, never the spec.

Configuration

State lives in ~/.lohra (or per-workspace via --profile): .env (API keys) · workflow_policy.json (leaf fs/egress) · workflow_tiers.json (model tiers). Providers out of the box: Anthropic, OpenAI, OpenRouter, DeepSeek, Groq, Together, Gemini, Ollama — plus an opt-in subscription mode (see the ToS warning in lohra auth).

MIT license. Alpha software — built and validated live, but young.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lohra-0.0.1.tar.gz (364.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lohra-0.0.1-py3-none-any.whl (266.6 kB view details)

Uploaded Python 3

File details

Details for the file lohra-0.0.1.tar.gz.

File metadata

  • Download URL: lohra-0.0.1.tar.gz
  • Upload date:
  • Size: 364.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.5

File hashes

Hashes for lohra-0.0.1.tar.gz
Algorithm Hash digest
SHA256 6a87ee020db3ad6ad9c6a6051d2f56ec86b6dc3baa4f7cad186ec96924201f4c
MD5 6caaed939b900b8d3b125841d34aae4f
BLAKE2b-256 36ba8b9c4b5262d9a52b36f60ab2e54e8083c577e416d6c7f1a55f496f9a716c

See more details on using hashes here.

File details

Details for the file lohra-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: lohra-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 266.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.5

File hashes

Hashes for lohra-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a27c6c28db91256a2debaa8226fda636437a63a428aacc8734c8f743885b2235
MD5 c8452d5ccf379982c958dda2304e258b
BLAKE2b-256 5623ac8507c46267d63d0ef57dd77a266a15ff2a328d3a6827e596a92a0aecf4

See more details on using hashes here.

Release history Release notifications | RSS feed

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

This release

0.0.1 This release

2 files

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