Alphora

A production-ready Python framework for building composable AI agents.

Source repo
opencmit/alphora
Stars
★ 350
Last updated
4mo ago
FARS reviewed
Sep 18, 2026
License
Apache-2.0
Primary language
Python

At a glance

Works with
Universal · cross-platformOpenAI APIChatGPT (Partial support)
You'll need
Python 3.11+DockerShell / CLINetwork accessLocal filesystemMCP Server
Typical use
Data teams that need an agent to open spreadsheet files and write analysis code, following the ChatExcel example with SkillAgent plus Sandbox
Main limitation
Most component documentation links point to Chinese paths under docs/components/cn, so non-Chinese readers depend on the English README alone
Maintenance
Commits in the last 6 monthslast commit 2026-07-07

What does this agent do, and when should you use it?

Alphora is a full-stack Python framework for production AI agents, built async-first and around an OpenAI-compatible interface. It bundles a ReAct and plan-execute agent loop, a @tool decorator that derives function-calling schemas from type hints and docstrings, multi-session memory with a composable processor pipeline, a code sandbox (local, Docker, or remote Docker), and an agentskills.io-compatible skill loader with three-phase progressive loading. Around the core sit typed SSE streaming, a unified hook event system, a Jinja2 prompt engine, MCP client integration, and an agent-derivation mechanism for spawning child agents per request. Any agent can be published as an OpenAI-compatible REST API via publish_agent_api, with a bundled alphora-web chat UI and an optional visual debugger. It targets teams that want to own orchestration, sandboxing, and deployment rather than adopt a turnkey hosted product.

You define tools with the @tool decorator; Alphora turns their type hints and docstrings into OpenAI function-calling schemas. A ReActAgent or SkillAgent then runs a reasoning-action loop, calling tools and the LLM, and executes model-generated code inside a Sandbox (runtime local, docker, or remote Docker) where it can write and list files under a workspace root. The model layer (OpenAILike and similar) talks to any OpenAI-compatible endpoint, accepts multimodal input, and can load-balance across backends with llm1 + llm2. Memory isolates sessions and composes processors such as keep_last, token_budget, and summarize_tool_calls. Responses stream over async SSE with content types like char, think, result, sql, and chart; publish_agent_api(agent, method=...) serves the agent as a REST API consumed by alphora-web or your own frontend.

  1. Data teams that need an agent to open spreadsheet files and write analysis code, following the ChatExcel example with SkillAgent plus Sandbox
  2. Developers building multi-step web research and report generation, as in the Deep Research example
  3. Backend teams that want to expose their own agent through an OpenAI-compatible /chat/completions endpoint for an existing chat UI
  4. Platform owners who must execute model-generated code safely inside isolated Docker containers with file and package policies
  5. Framework users who want to attach MCP tool servers (stdio/SSE/HTTP) and manage skills and tools from one hook system
  6. Gateway-style products that derive per-request orchestrator and specialist agents using derive() and AgentCollabScope

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Install / run
  • pip install alphora
  • pip install "alphora[mcp]" # MCP tool integration
  • pip install "alphora[cli]" # Terminal rich split-pane rendering
Environment variables
LLM_API_KEY LLM_BASE_URL
Runtime
Python 3.11
Install notes cover
Docker

How do you install or deploy this agent?

Requires Python 3.11 or newer; the Docker sandbox additionally needs a Docker environment.

pip install alphora

# Optional extras
pip install "alphora[mcp]"   # MCP tool integration
pip install "alphora[cli]"   # Terminal rich split-pane rendering

For concurrent production APIs, the README recommends alphora >= 1.3.3, which fixes request-scoped config and sandbox isolation. Then set the model environment variables:

export LLM_API_KEY="your-api-key"
export LLM_BASE_URL="https://api.openai.com/v1"
export DEFAULT_LLM="gpt-4"

How do you use this agent?

A minimal agent with a custom tool:

from alphora.agent import ReActAgent
from alphora.models import OpenAILike
from alphora.tools import tool

@tool
def get_weather(city: str, unit: str = "celsius") -> str:
    """Get current weather for a city."""
    return f"Weather in {city}: 22°{unit[0].upper()}, Sunny"

agent = ReActAgent(
    llm=OpenAILike(model_name="gpt-4"),
    tools=[get_weather],
    system_prompt="You are a helpful assistant.",
)

result = await agent.run("What's the weather in Tokyo?")

Running generated code inside a Docker sandbox:

from alphora.sandbox import Sandbox

async with Sandbox(runtime="docker", workspace_root="/data/workspace") as sandbox:
    result = await sandbox.execute_code("print(6 * 7)")
    print(result.stdout)  # 42

    await sandbox.write_file("outputs/result.txt", "done")
    files = await sandbox.list_files()

Publishing the agent as an OpenAI-compatible API:

from alphora.server.quick_api import publish_agent_api, APIPublisherConfig

config = APIPublisherConfig(path="/v1")
app = publish_agent_api(agent, method="start", config=config)
# uvicorn main:app --port 8000
curl -N http://localhost:8000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{"messages":[{"role":"user","content":"Hello!"}],"stream":true,"session_id":"demo-1"}'

Launching the bundled chat frontend:

alphora-web
# Open http://localhost:8813 and set the API Path to your backend (e.g. /alphadata/chat/completions)

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

External MCP tool bridge

Inherits capabilities of connected MCP servers; audit third-party servers before enabling.

FARS trust-control audit

Not found in source — apply before daily use
  • confirmation before acting — Turn on (or add) a confirmation step before it acts, and try it in a sandbox or test environment before real data.

What are this agent's strengths and limitations?

Pros
  • The sandbox is a first-class component with local, Docker, and remote Docker runtimes, file isolation, and package management
  • The @tool decorator generates function-calling schemas from type hints and docstrings, with Pydantic V2 validation and parallel execution
  • agentskills.io-compatible three-phase skill loading keeps token budgets in check by expanding instructions and resources only when needed
  • One call to publish_agent_api turns an agent into an OpenAI-compatible REST API with session management and SSE streaming
  • Any OpenAI-compatible backend works through adapters, and llm1 + llm2 combines multiple models with round-robin or random dispatch
Limitations
  • Most component documentation links point to Chinese paths under docs/components/cn, so non-Chinese readers depend on the English README alone
  • Docker sandbox, remote Docker, and TLS setup mean production deployment is not a single install step
  • The visual debugger (debugger=True) is explicitly labeled experimental, limiting its production use
  • Release cadence is fast and the README warns concurrent APIs need 1.3.3+ because earlier versions lack request-scoped isolation
  • Persistent session storage, auth, and gateway logic must be built by the team; there is no hosted offering

How does this agent compare with similar options?

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
Alphora This agent 42 · Major gaps — ★ 350 4mo ago Python OpenAI API
FastClaw 63 · Some gaps CLIFree + model costs ★ 1.4k today Go OpenAI API · Claude API
LightAgent 60 · Some gaps Library / SDKFree + model costs ★ 1.3k 10d ago Python OpenAI API
Shannon 56 · Major gaps Self-hosted serviceFree + model costs ★ 2.3k 2mo ago Go OpenAI API · Claude API

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Major gaps
42/ 100 5-point scale 2.1 / 5
Trust 10/29
Reliability 5/14
Adaptability 9/18
Convention 9/18
Effectiveness 6/13
Verifiability 3/8
Why each dimension lost points
Trust10 / 29 · 1.7/5

README mentions Local/Docker/remote Docker sandbox and security policies, but gives no default permission scope, network/filesystem boundaries, or least-privilege configuration, so least_privilege is 1; user_confirmation is 0 because code execution, tool calls, and API publishing have no human confirmation or approval gate; data_flow_transparency is 1, env vars and LLM endpoints are described but data flows, logging, and trace contents are undisclosed; sensitive_data_handling is 1, with no key management, redaction, or retention policy; dependency_security is 1, versions are pinned but no hashes, audit, or vulnerability mitigation are shown; external_effects is 1, sandbox and API publishing have side effects but impact scope and idempotency are unstated; rollback is 1, only memory undo/redo is mentioned, with no deployment, migration, or destructive-operation recovery path; source_attribution is 2, LICENSE and contributors are clear, but publisher identity is unverified so full marks are withheld.

Reliability5 / 14 · 1.8/5

self_consistency is 1, README and pyproject conflict on version, license, and description (1.3.4 vs CLA license text vs Apache-2.0 badge); dependency_availability is 1, all dependencies are pinned but availability, mirrors, and offline install are not addressed; failure_messages is 1, no error taxonomy, retry semantics, or failure diagnostics examples are shown.

Adaptability9 / 18 · 2.5/5

audience_and_scenarios is 2, aimed at production Agent builders with ChatExcel, Deep Research, and API publishing examples; capability_boundaries is 1, unsupported capabilities, model limits, and sandbox escape boundaries are not stated; trigger_precision is 1, tool and Agent triggering relies on prompts without precise trigger conditions or conflict handling; environment_fit is 2, requires Python 3.11+ and supports Docker/remote Docker and multiple models, but does not cover Windows, Docker-less, or restricted-network environments.

Convention9 / 18 · 2.5/5

information_architecture is 2, README is well structured with a complete component doc index; install_notes is 2, pip install and optional extras are clear; naming_stability is 1, no API stability or deprecation policy; examples_and_faq is 2, examples table and quick start exist but no FAQ; known_limitations is 1, only the debugger is marked experimental, with no systematic limitations list; license is 1, LICENSE is Apache-2.0 but pyproject says license = {text = "CLA"}, a metadata conflict; versioning_changelog is 1, a version number exists but no CHANGELOG or semver policy; maintenance_responsibility is 2, contributors and team are clear, but the publisher is unverified so full marks are withheld.

Effectiveness6 / 13 · 2.3/5

output_usability is 2, copyable code, SSE streaming, and a Web UI make outputs directly usable; marginal_value is 1, feature-rich but no differentiation evidence against comparable frameworks, and the value proposition is promotional; cost_benefit is 1, resource consumption, token cost, and deployment overhead are not described, making ROI hard to assess.

Verifiability3 / 8 · 1.9/5

claim_traceability is 1, README claims production-grade, secure sandbox, and load balancing without links to concrete implementation or test evidence; cross_source_corroboration is 1, README, pyproject, and LICENSE conflict on license and version, weakening cross-source confirmation; fact_inference_separation is 1, documentation mixes facts with marketing language and does not separate verified facts from inference.

Risks and how to mitigate them
  • Not found in source: confirmation before actingTurn on (or add) a confirmation step before it acts, and try it in a sandbox or test environment before real data.
  • License metadata conflict: pyproject.toml declares license = {text = "CLA"} while LICENSE and badge say Apache-2.0; clarify before enterprise compliance use.
  • Code sandbox and tool calls have no default human confirmation, and least-privilege, network, and filesystem boundaries are unstated; harden before production deployment.
  • Publisher identity is unverified; maintenance responsibility and update path rest only on the README contributor list and cannot be used to infer reliability.
  • All dependencies are pinned but lack hashes or vulnerability audit, and offline/mirror availability is unstated; assess supply-chain risk independently.
  • README claims such as "production-grade" and "secure sandbox" lack traceable implementation or test evidence and remain promotional.
Evidence confidence: Low Reviewed Sep 18, 2026 Reviewed revision 3885e73b8d61
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/alphora.svg)](https://followagents.com/en/agents/alphora)
<a href="https://followagents.com/en/agents/alphora"><img src="https://followagents.com/badge/alphora.svg" alt="FARS review"></a>

FAQ

Is Alphora a hosted platform or something I run myself?
It is a Python library and framework you install and run in your own environment. publish_agent_api returns an app you serve yourself (for example with uvicorn); the project does not provide a managed cloud.
Do I have to use OpenAI models?
No. The model layer works with any OpenAI-compatible API through classes such as OpenAILike; the README names GPT, Claude, Qwen, DeepSeek, and local models, and llm1 + llm2 lets you balance across backends.
Where does agent-generated code actually execute?
Inside the Sandbox component, using runtime local, docker, or remote Docker, with configurable file isolation, package management, and security policies. The Docker image is built automatically on first use.
How do I connect the agent to my own frontend?
Expose it with publish_agent_api as an OpenAI-compatible /chat/completions endpoint; the SSE stream carries typed content such as char, think, and result. Alternatively point the bundled alphora-web UI at that path.
What are the licensing obligations?
The project is Apache License 2.0; contributions require accepting the Contributor License Agreement (CLA) described in the README.
Is Alphora safe to use?
FollowAgents' FARS review (Sep 18, 2026) scored Alphora 10/29 on trust and safety. The review did not find these safety controls in the source: confirmation before acting. Before giving it real accounts or data: Turn on (or add) a confirmation step before it acts, and try it in a sandbox or test environment before real data.
Is Alphora still maintained?
Development has slowed: the latest commit on GitHub is from 2026-07-07, within the last six months but not the last 30 days.
Who makes Alphora?
Alphora is published on GitHub by the account opencmit. FollowAgents has not verified which person or company is behind that account.
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts