The LLM-Agnostic Agentic Framework
Project description
Allos Agent SDK
๐ The LLM-Agnostic Agentic Framework
Build powerful AI agents without vendor lock-in
Documentation โข Roadmap โข Contributing
๐ฏ What is Allos?
Allos is an open-source, provider-agnostic agentic SDK that gives you the power to build production-ready AI agents that work with any LLM provider. Inspired by Anthropic's Claude Code, Allos delivers the same outstanding capabilities without locking you into a single ecosystem.
The Problem: Most agentic frameworks force you to choose between vendors, making it expensive and risky to switch models.
The Solution: Allos provides a unified interface across OpenAI, Anthropic, Ollama, Google, and moreโso you can use the best model for each task without rewriting your code.
โจ Key Features
๐ Provider Agnostic
Switch seamlessly between OpenAI, Anthropic, Ollama, and other LLM providers. Use GPT-4 for one task, Claude for another, or run models locallyโall with the same code.
๐ ๏ธ Rich Tool Ecosystem
Built-in tools for:
- ๐ File operations (read, write, edit)
- ๐ป Shell command execution
- ๐ Web search and fetching (coming soon)
- ๐ MCP (Model Context Protocol) extensibility (coming soon)
๐๏ธ Advanced Capabilities
- โก Context Management: Automatic context window optimization
- ๐ Fine-grained Permissions: Control what your agent can and cannot do
- ๐พ Session Management: Save and resume conversations
- ๐ Production Ready: Built-in error handling, logging, and monitoring
- ๐จ Extensible: Easy to add custom tools and providers
๐ Developer Experience
# Create your own Claude Code in 5 minutes
uv pip install allos-agent-sdk
export OPENAI_API_KEY=your_key
allos "Create a REST API for a todo app"
๐ Why Allos?
| Feature | Allos | Anthropic Agent SDK | LangChain Agents |
|---|---|---|---|
| Provider Agnostic | โ | โ (Anthropic only) | โ ๏ธ (Complex) |
| Local Models Support | โ | โ | โ ๏ธ |
| Simple API | โ | โ | โ |
| Built-in Tools | โ | โ | โ ๏ธ |
| MCP Support | ๐ง | โ | โ |
| Production Ready | โ | โ | โ ๏ธ |
| Open Source | โ MIT | โ ๏ธ Limited | โ |
๐ Quick Start
See the full workflow in action by running our CLI demo script:
bash <(curl -s https://raw.githubusercontent.com/Undiluted7027/allos-agent-sdk/main/examples/cli_workflow.sh)
Installation
We recommend using uv, a fast Python package manager.
# Basic installation
uv pip install allos-agent-sdk
# With specific providers
uv pip install "allos-agent-sdk[openai]"
uv pip install "allos-agent-sdk[anthropic]"
uv pip install "allos-agent-sdk[all]" # All providers
CLI Usage
The allos CLI is the quickest way to use the agent.
# Set your API key (or use a .env file)
export OPENAI_API_KEY="your_key_here"
# Run a single task
allos "Create a FastAPI hello world app in a file named main.py and then run it."
# Start an interactive session for a conversation
allos -i
# >>> Create a file named 'app.py' with a simple Flask app.
# >>> Now, add a route to it that returns the current time.
# Switch providers and save your session
export ANTHROPIC_API_KEY="your_key_here"
allos -p anthropic -s my_project.json "Refactor the 'app.py' file to be more modular."
Python API
from allos import Agent, AgentConfig
# Simple agent
agent = Agent(AgentConfig(
provider="openai",
model="gpt-4",
tools=["read_file", "write_file", "shell_exec"]
))
result = agent.run("Fix the bug in main.py and add tests")
print(result)
Provider Switching Example
# Start with OpenAI
agent_openai = Agent(AgentConfig(
provider="openai",
model="gpt-4",
tools=["read_file", "write_file"]
))
# Switch to Anthropic for complex reasoning
agent_claude = Agent(AgentConfig(
provider="anthropic",
model="claude-sonnet-4-5",
tools=["read_file", "write_file"]
))
# Or use local models with Ollama (COMING SOON!)
agent_local = Agent(AgentConfig(
provider="ollama",
model="qwen2.5-coder",
tools=["read_file", "write_file"]
))
# Same interface, different providers!
result = agent_openai.run("Create a FastAPI app")
Custom Tools
from allos.tools import BaseTool, tool, ToolParameter
@tool
class DatabaseQueryTool(BaseTool):
name = "query_database"
description = "Execute SQL queries"
parameters = [
ToolParameter(
name="query",
type="string",
description="SQL query to execute",
required=True
)
]
def execute(self, **kwargs: Dict[str, Any]) -> Dict[str, Any]:
query = kwargs.get("query")
if not query:
return {"success": False, "error": "Query parameter is required."}
# Your implementation
# In a real scenario, you would connect to a DB.
# result = your_db.execute(query)
# For this example, we'll return a mock result.
return {"status": "success", "result": f"Query '{query}' executed."}
# Use it
agent = Agent(AgentConfig(
provider="openai",
model="gpt-4",
tools=["query_database", "read_file"]
))
๐๏ธ Architecture
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ CLI Layer โ
โ (User-friendly interface) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Agent Core โ
โ (Orchestration & Agentic Loop) โ
โโโโโโโฌโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโ-โ
โ โ โ
โโโโโโโผโโโโโโโโโ โโโโโโโโผโโโโโโโโ โโโโโโโโโผโโโโโโโ
โ Providers โ โ Tools โ โ Context โ
โ โ โ โ โ โ
โ โข OpenAI โ โ โข FileSystem โ โ โข History โ
โ โข Anthropic โ โ โข Shell โ โ โข Compactor โ
โ โข Ollama โ โ โข Web โ โ โข Cache โ
โ โข Google โ โ โข Custom โ โ โข Manager โ
โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ
Core Components
- Provider Layer: Unified interface for all LLM providers
- Tool System: Extensible toolkit with built-in and custom tools
- Agent Core: Main agentic loop with planning and execution
- Context Manager: Automatic context window optimization
- CLI: User-friendly command-line interface
๐ Provider Support
| Provider | Status | Models | Features |
|---|---|---|---|
| OpenAI | โ Ready | GPT-5, GPT-4, GPT-4o | Tool calling, streaming |
| Anthropic | โ Ready | Claude 3, Claude 4 (Opus, Sonnet, Haiku) | Tool calling, streaming |
| Ollama | ๐ง Coming Soon | Llama, Mistral, Qwen, etc. | Local models |
| ๐ง Coming Soon | Gemini Pro, Gemini Ultra | Tool calling | |
| Cohere | ๐ Planned | Command R, Command R+ | Tool calling |
| Custom | โ Ready | Any OpenAI-compatible API | Extensible |
๐ ๏ธ Built-in Tools
| Tool | Description | Permission |
|---|---|---|
read_file |
Read file contents | Always Allow |
write_file |
Write/create files | Ask User |
edit_file |
Edit files (string replace) | Ask User |
list_directory |
List directory contents | Always Allow |
shell_exec |
Execute shell commands | Ask User |
web_search |
Search the web | ๐ Planned |
web_fetch |
Fetch web page content | ๐ Planned |
๐ฏ Use Cases
Coding Agents
# SRE Agent - Diagnose and fix production issues (Web Search COMING SOON!)
sre_agent = Agent(AgentConfig(
provider="anthropic",
model="claude-4-opus",
tools=["read_file", "shell_exec", "web_search"]
))
sre_agent.run("Investigate why the API latency spiked at 3pm")
# Code Review Agent
review_agent = Agent(AgentConfig(
provider="openai",
model="gpt-4",
tools=["read_file", "write_file"]
))
review_agent.run("Review PR #123 for security issues and best practices")
Business Automation
# Data Analysis Agent
data_agent = Agent(AgentConfig(
provider="openai",
model="gpt-4",
tools=["read_file", "write_file", "query_database"]
))
data_agent.run("Analyze Q4 sales data and create a summary report")
# Content Creation Agent (Web Search COMING SOON!)
content_agent = Agent(AgentConfig(
provider="anthropic",
model="claude-sonnet-4-5",
tools=["web_search", "read_file", "write_file"]
))
content_agent.run("Research AI trends and write a blog post")
๐ Documentation
- Getting Started - Installation and first steps
- Quickstart Guide - 5-minute tutorial
- Providers - Provider configuration
- Tools - Using built-in tools
- Custom Tools - Creating your own tools
- CLI Reference - Command-line options
- API Reference - Python API documentation
- Architecture - System design
๐บ๏ธ Roadmap
โ Phase 1: MVP (Current)
- Initial architecture design
- Directory structure
- Provider layer (OpenAI, Anthropic)
- Tool system (filesystem, shell) with user-approval permissions
- Agent core with agentic loop and session management
- CLI interface
- Comprehensive unit, integration, and E2E test suites
- Final documentation and launch prep
See MVP_ROADMAP.md for detailed MVP timeline.
๐ง Phase 2: Enhanced Features
- Ollama integration (local models)
- Google Gemini support
- Web search and fetch tools
- Advanced context management
- Plugin system
- Configuration files (YAML/JSON)
- Session management improvements
๐ฎ Phase 3: Advanced Capabilities
- MCP (Model Context Protocol) support
- Subagents and delegation
- Pydantic AI integration
- Smolagents compatibility
- Multi-modal support
- Advanced monitoring and observability
- Cloud deployment support
๐ง Known Limitations (MVP)
The current MVP of the Allos Agent SDK is focused on providing a robust foundation. It intentionally excludes some advanced features that are planned for future releases:
- No Streaming Support: The agent currently waits for the full response from the LLM and tools. Real-time streaming of responses is a post-MVP feature.
- Limited Context Management: The agent performs a basic check to prevent exceeding the context window but does not yet implement advanced context compaction or summarization for very long conversations.
- No Async Support: The core
AgentandToolclasses are synchronous. An async-first version is planned for a future release. - Limited Provider Support: The MVP includes
openaiandanthropic. Support forollama,google, and others is on the roadmap. - No Web Tools: Built-in tools for web search (
web_search) and fetching URLs (web_fetch) are planned but not yet implemented. - Basic Error Recovery: While the agent can recover from tool execution errors (like permission denied), it does not yet have sophisticated strategies for retrying failed API calls or self-correcting flawed plans.
Please see our full ROADMAP.md for more details on our plans for these and other features.
๐ฆ Current Status
๐ต MVP Development is almost complete
All major features for the MVP are implemented and tested.
- โ Providers: OpenAI and Anthropic are fully supported.
- โ Tools: Secure filesystem and shell tools are included.
- โ Agent Core: The agentic loop, permissions, and session management are functional.
- โ CLI: A polished and powerful CLI is the primary user interface.
- โ Python API: The underlying Python API is stable and ready for use.
Expected MVP Release: 6-8 weeks from project start
We welcome early contributors! See Contributing below.
๐ค Contributing
We're building Allos in the open and would love your help! Whether you're:
- ๐ Reporting bugs
- ๐ก Suggesting features
- ๐ Improving documentation
- ๐ง Submitting PRs
- โญ Starring the repo (helps a lot!)
All contributions are welcome! See CONTRIBUTING.md for guidelines.
Development Setup
# Clone the repository
git clone https://github.com/Undiluted7027/allos-agent-sdk.git
cd allos-agent-sdk
Python Environment
With pip
# Create virtual environment
python -m venv venv
# For: Mac OS/Linux
source venv/bin/activate
# On Windows: venv\Scripts\activate
# Install in development mode
pip install -e ".[dev]"
# Make the test script executable
chmod +x scripts/run_tests.sh
# Run the default test suite (unit + e2e, no API keys required)
./scripts/run_tests.sh
# Run ONLY integration tests (requires API keys in a .env file)
uv run pytest --run-integration
# Format code
black allos tests
ruff check allos tests --fix
With uv
Ensure you have uv installed. Check out UV Installation Instructions for more information.
# Create virtual environment
uv venv
# Activate environment
# For: MacOS/Linux
source .venv/bin/activate
# For: Windows (Powershell)
# .venv\Scripts\activate
# Install in development mode
uv pip install -e ".[dev]"
# Make the test script executable
chmod +x scripts/run_tests.sh
# Run the default test suite (unit + e2e, no API keys required)
./scripts/run_tests.sh
# Run ONLY integration tests (requires API keys in a .env file)
uv run pytest --run-integration
# Format code
black allos tests
ruff check allos tests --fix
๐ Stargazers Hall of Fame
A huge thank you to our first 100 stargazers! You're helping build the future of AI agent development. ๐
No stargazers yet. Be the first! โญ
Not featured yet? โญ Star us on GitHub to join the Hall of Fame!
๐ Why "Allos"?
Allos (Greek: แผฮปฮปฮฟฯ) means "other" or "different" - representing our core philosophy of choice and flexibility. Just as the word implies alternatives and options, Allos gives you the freedom to choose any LLM provider without constraints.
๐ License
Allos is open source and available under the MIT License.
๐ Acknowledgments
Inspired by:
- Anthropic's Claude Code - For showing what's possible with agentic coding
- LangChain - For pioneering LLM frameworks
- AutoGPT - For autonomous agent patterns
๐ฌ Contact & Community
- GitHub Issues: Report bugs or request features
- Discussions: Join the conversation
- Twitter: @allos_sdk (coming soon)
- Discord: Join our community (coming soon)
Built with โค๏ธ by the open source community
Project details
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 allos_agent_sdk-0.0.1.tar.gz.
File metadata
- Download URL: allos_agent_sdk-0.0.1.tar.gz
- Upload date:
- Size: 44.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5aa9fe4b3cbe566d8efbc42bfb02a21996e343c20af1968f3b49403edb1b4d3f
|
|
| MD5 |
99b1049ba6373854d44dbc4343a2bd04
|
|
| BLAKE2b-256 |
14b6aadaad4ba3ced0a0383b6db03b8005b3468cdfa145ec70b2e41fd65ad9f2
|
Provenance
The following attestation bundles were made for allos_agent_sdk-0.0.1.tar.gz:
Publisher:
publish.yml on Undiluted7027/allos-agent-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
allos_agent_sdk-0.0.1.tar.gz -
Subject digest:
5aa9fe4b3cbe566d8efbc42bfb02a21996e343c20af1968f3b49403edb1b4d3f - Sigstore transparency entry: 685052694
- Sigstore integration time:
-
Permalink:
Undiluted7027/allos-agent-sdk@51efb8af022ed3515146ac5639ddfe1c091cd8fa -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Undiluted7027
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@51efb8af022ed3515146ac5639ddfe1c091cd8fa -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file allos_agent_sdk-0.0.1-py3-none-any.whl.
File metadata
- Download URL: allos_agent_sdk-0.0.1-py3-none-any.whl
- Upload date:
- Size: 50.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f45d2985c9b9d24a628966e7905ddfa20233a3c178794c9067c6201fddee751
|
|
| MD5 |
fb540717ee76fdd3da9b0f3f541282d1
|
|
| BLAKE2b-256 |
dd97c0524dae6fdd8ab65dee42b84231f52b6239db96e7671d02a588e8c92141
|
Provenance
The following attestation bundles were made for allos_agent_sdk-0.0.1-py3-none-any.whl:
Publisher:
publish.yml on Undiluted7027/allos-agent-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
allos_agent_sdk-0.0.1-py3-none-any.whl -
Subject digest:
1f45d2985c9b9d24a628966e7905ddfa20233a3c178794c9067c6201fddee751 - Sigstore transparency entry: 685052697
- Sigstore integration time:
-
Permalink:
Undiluted7027/allos-agent-sdk@51efb8af022ed3515146ac5639ddfe1c091cd8fa -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Undiluted7027
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@51efb8af022ed3515146ac5639ddfe1c091cd8fa -
Trigger Event:
workflow_dispatch
-
Statement type: