Skip to content
Projects

arklexai/Agent-First-Organization

View on GitHub

About

The official Python library for Arklex framework

Developer Tools

How these counts are measured

What you can do

  • ๐Ÿš€ 90% Faster Development โ€” Deploy agents in days, not months
  • ๐Ÿง  Agent-First Design โ€” Purpose-built for multi-agent orchestration
  • ๐Ÿ”Œ Model Agnostic โ€” OpenAI, Anthropic, Gemini, and more
  • ๐Ÿ“Š Built-in Evaluation โ€” Comprehensive testing suite

Measured star growth

in 24h
0
in 7 days
-2
in 15 days
-2
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

๐Ÿง  Arklex AI ยท Agent-First Framework

Arklex AI Logo

Build, deploy, and scale intelligent AI agents with enterprise-grade reliability

Release PyPI Python License Discord Coverage

๐Ÿš€ Quick Start โ€ข ๐Ÿ“š Documentation โ€ข ๐Ÿ’ก Examples


๐Ÿš€ Get Started in 5 Minutes

Install & Setup

# Install
pip install arklex

# Create .env file
echo "OPENAI_API_KEY=your_key_here" > .env

# Clone the repository (required if you want to run example/test scripts)
git clone https://github.com/arklexai/Agent-First-Organization.git
cd Agent-First-Organization
pip install -e .

# Test your API keys (recommended)
python test_api_keys.py

# Create your first agent
# The current `main` branch does not include a top-level `create.py` script, even though some older instructions may still reference it.
# If you are getting started, use one of the prebuilt examples under `examples/` and run the agent with `run.py`.

python create.py \
  --config ./examples/customer_service/customer_service_config.json \
  --output-dir ./examples/customer_service \
  --llm_provider openai \
  --model gpt-4o

# Run agent
python run.py \
  --input-dir ./examples/customer_service \
  --llm_provider openai \
  --model gpt-4o

# For evaluation and testing, you can also use the model API server:
# 1. Start the model API server (defaults to OpenAI with "gpt-4o-mini" model):
python model_api.py --input-dir ./examples/customer_service

# 2. Run evaluation (in a separate terminal):
python eval.py --model_api http://127.0.0.1:8000/eval/chat \
  --config "examples/customer_service/customer_service_config.json" \
  --documents_dir "examples/customer_service" \
  --model "claude-3-haiku-20240307" \
  --llm_provider "anthropic" \
  --task "all"

๐Ÿ“บ Learn by Example

โ–ถ๏ธ Build a Customer Service Agent in 20 Minutes

Watch the video

๐Ÿ‘‰ Explore the full tutorial: Customer Service Agent Walkthrough


โšก Key Features

  • ๐Ÿš€ 90% Faster Development โ€” Deploy agents in days, not months
  • ๐Ÿง  Agent-First Design โ€” Purpose-built for multi-agent orchestration
  • ๐Ÿ”Œ Model Agnostic โ€” OpenAI, Anthropic, Gemini, and more
  • ๐Ÿ“Š Built-in Evaluation โ€” Comprehensive testing suite
  • ๐Ÿ›ก๏ธ Enterprise Security โ€” Authentication and rate limiting
  • โšก Production Ready โ€” Monitoring, logging, auto-scaling

๐Ÿ—๏ธ Architecture

graph TB
    A[Task Graph] --> B[Orchestrator]
    B --> C[Workers]
    B --> D[Tools]
    C --> E[RAG Worker]
    C --> F[Database Worker]
    C --> G[Custom Workers]
    D --> I[API Tools]
    D --> J[External Tools]

Core Components:

  • Task Graph โ€” Declarative DAG workflows
  • Orchestrator โ€” Runtime engine with state management
  • Workers โ€” RAG, database, web automation
  • Tools โ€” Shopify, HubSpot, Google Calendar integrations

๐Ÿ’ก Use Cases

Domain Capabilities
Customer service for e-commerce RAG chatbots, ticket routing, support workflows
E-commerce such as shopify sales and customer Order management, inventory tracking, recommendations
Business Process Scheduling, CRM operations, document processing

๐Ÿ“š Examples

Example Description Complexity
Customer Service RAG-powered support โญโญ
Shopify Integration E-commerce management โญโญโญ
HubSpot CRM Contact management โญโญโญ
Calendar Booking Scheduling system โญโญ
Human-in-the-Loop Interactive workflows โญโญโญโญ

๐Ÿ”ง Configuration

Requirements: Python 3.10+, API keys

# Required: Choose one or more LLM providers
OPENAI_API_KEY=your_key_here
# OR ANTHROPIC_API_KEY=your_key_here
# OR GOOGLE_API_KEY=your_key_here

# Optional: Enhanced features
MILVUS_URI=your_milvus_uri
MYSQL_USERNAME=your_username
TAVILY_API_KEY=your_tavily_key

Testing API Keys: After adding your API keys to the .env file, run the test script to verify they work correctly:

# Test all configured API keys
python test_api_keys.py

# Test specific providers only
python test_api_keys.py --providers openai gemini
python test_api_keys.py --providers openai anthropic

๐Ÿ“– Documentation


๐Ÿค Community


๐Ÿ“„ License

Arklex AI is released under the MIT License. See LICENSE for details.

This means you can:

  • โœ… Use Arklex AI for commercial projects
  • โœ… Modify and distribute the code
  • โœ… Use it in proprietary applications
  • โœ… Sell applications built with Arklex AI

The only requirement is that you include the original license and copyright notice.


๐Ÿ™ Acknowledgments

Thanks to all our contributors and the open-source community for making this project possible!

๐ŸŒŸ Contributors

๐Ÿค Open Source Dependencies

Arklex AI builds on the shoulders of giants:

  • LangChain โ€” LLM framework and tooling
  • FastAPI โ€” Modern web framework
  • Pydantic โ€” Data validation
  • SQLAlchemy โ€” Database ORM
  • Milvus โ€” Vector database
  • And many more...

Made with โค๏ธ by the Arklex AI Team

Website โ€ข Documentation โ€ข GitHub โ€ข Discord โ€ข LinkedIn

Explore related projects

Loadingโ€ฆ