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
- FA score
- 42/100 · Major gaps
At a glance
- Works with
- Universal · cross-platformOpenAI APIChatGPT (Partial support)
- You'll need
- 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
- Source review
- 42/100 · Major gaps 1 safety controls not found
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.
- Data teams that need an agent to open spreadsheet files and write analysis code, following the ChatExcel example with SkillAgent plus Sandbox
- Developers building multi-step web research and report generation, as in the Deep Research example
- Backend teams that want to expose their own agent through an OpenAI-compatible /chat/completions endpoint for an existing chat UI
- Platform owners who must execute model-generated code safely inside isolated Docker containers with file and package policies
- Framework users who want to attach MCP tool servers (stdio/SSE/HTTP) and manage skills and tools from one hook system
- 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 alphorapip install "alphora[mcp]" # MCP tool integrationpip install "alphora[cli]" # Terminal rich split-pane rendering
- Environment variables
LLM_API_KEYLLM_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 renderingFor 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 8000curl -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)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
Inherits capabilities of connected MCP servers; audit third-party servers before enabling.
FARS trust-control audit
- 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?
- 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
- 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?
Why each dimension lost points
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.
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.
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.
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.
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.
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.
- 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.
FAQ
Is Alphora a hosted platform or something I run myself?
Do I have to use OpenAI models?
Where does agent-generated code actually execute?
How do I connect the agent to my own frontend?
What are the licensing obligations?
Is Alphora safe to use?
Is Alphora still maintained?
Who makes Alphora?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.