Sign inSign up

leemysw/agent-kit

By leemysw

Updated 6 months ago

Production-Ready AI Agent Development Framework Powered by Claude Agent SDK

Image
0

2.8K

leemysw/agent-kit repository overview

Production-Ready AI Agent Development Framework Powered by Claude Agent SDK
基于 Claude Agent SDK 构建的生产级 AI 智能体开发框架

GitHub

English | 中文


📖 Introduction

Agent Kit is a comprehensive AI agent development framework that integrates Claude Agent SDK, providing a complete solution from frontend to backend. This project aims to help developers quickly build, deploy, and scale production-grade AI Agent applications.


🏗️ Architecture

Architecture Diagram

🚀 Quick Start

Prerequisites
  • Python: 3.11 or higher
  • Node.js: 24.0 or higher
  • Docker & Docker Compose: Latest version
  • Agent API Key: Get from Anthropic or Bigmodel
Installation

1️⃣ Clone the repository

git clone https://github.com/leemysw/agent-kit.git
cd agent-kit

2️⃣ Configure environment variables

# Copy environment variable template
cp example.env .env
# Edit .env file and add your API key

3️⃣ Start services

make start
╰─ make start
TAG=0.1.2 docker compose -f deploy/docker-compose.yml up -d
[+] Running 3/3
 ✔ Container deploy-agent-kit-1  Started                                                                                                                                           1.8s 
 ✔ Container deploy-web-1   Started                                                                                                                                           0.9s 
 ✔ Container deploy-nginx-1      Running                                                                                                                                           0.0s 

✅ Agent Kit is running!
🌐 Web UI: http://localhost
📋 Logs: run 'make logs' to view service logs

4️⃣ Access the application


Option 2: Local Development

1️⃣ Clone the repository

git clone https://github.com/leemysw/agent-kit.git
cd agent-kit

2️⃣ Backend setup

# Install Python dependencies
pip install -r agent/requirements.txt

# Configure environment variables
cp example.env .env
# Edit .env file and add your API key

Configure .env file:

# Claude API configuration
ANTHROPIC_API_KEY=your_api_key_here
ANTHROPIC_BASE_URL=https://api.anthropic.com or https://open.bigmodel.cn/api/anthropic
ANTHROPIC_MODEL=claude-3-5-sonnet-20241022 or glm-4.6

# Server configuration
HOST=0.0.0.0
PORT=8010
DEBUG=true
WORKERS=1

3️⃣ Frontend setup

cd web

# Install dependencies
npm install

# Configure environment variables
cp example.env .env.local
# Edit .env.local file

Configure .env.local file:

# Development environment configuration
NEXT_PUBLIC_API_URL=http://localhost:8010/agent/v1
NEXT_PUBLIC_WS_URL=ws://localhost:8010/agent/v1/chat/ws
NEXT_PUBLIC_DEFAULT_CWD=/opt/app/playground
NEXT_PUBLIC_DEFAULT_MODEL=glm-4.6

4️⃣ Run the project

# Start backend (in project root directory)
python main.py

# Start frontend (in web directory)
npm run dev

5️⃣ Access the application


⚙️ Configuration

Backend Configuration
Config ItemDescriptionDefault Value
ANTHROPIC_API_KEYClaude API key-
ANTHROPIC_BASE_URLAPI base URLhttps://api.anthropic.com
ANTHROPIC_MODELModel to useglm-4.6
HOSTServer host0.0.0.0
PORTServer port8010
DEBUGDebug modefalse
WORKERSNumber of workers1
Frontend Configuration
Config ItemDescriptionDefault Value
NEXT_PUBLIC_API_URLBackend API URLhttp://localhost:8010/agent/v1
NEXT_PUBLIC_WS_URLWebSocket URLws://localhost:8010/agent/v1/chat/ws
NEXT_PUBLIC_DEFAULT_CWDWorking directory/opt/app/playground
NEXT_PUBLIC_DEFAULT_MODELDefault modelglm-4.6

📚 Documentation

For detailed guides and API documentation, please visit:

Development Guides

🤝 Contributing

All forms of contributions are welcome!

Bug Reports & Feature Requests

If you find a bug or have a new feature suggestion, please submit it through GitHub Issues.


Made with ❤️ by leemysw

If this project helps you, please give it a ⭐️ Star!


Tag summary

Content type

Image

Digest

sha256:ec3a800e5

Size

246.4 MB

Last updated

6 months ago

docker pull leemysw/agent-kit