agent-playground
v0.2.15
Published
A comprehensive playground for testing AI agents and models with support for multiple LLM providers
Maintainers
Readme
Agent Playground 🤖
A comprehensive development and debugging platform for AI Agents and Tools. Agent Playground helps developers create, test, and debug AI agents powered by various Large Language Models (LLMs) with custom tools and API integrations.


✨ Key Features
🤖 Multi-Agent Development
- Agent Management: Create and configure multiple AI agents with custom instructions
- Agent Templates: Pre-built agent templates for common use cases
- AI-Powered Generation: Generate agent instructions using AI assistance
- Multi-Language Support: Generate instructions in user's preferred language
🛠️ Advanced Tool System
- Custom Tool Creation: Build tools with JSON schema definitions
- AI Tool Generator: Generate tools automatically from natural language descriptions
- HTTP Request Integration: Configure tools to call external APIs
- Manual Testing: Test tools manually before agent integration
- Tool Templates: Quick-start templates for common tool patterns
🔌 Multi-LLM Provider Support
- OpenAI: GPT-4.1, GPT-4o, GPT-o1 and other OpenAI models
- Deepseek: Deepseek-chat and reasoning models
- Qwen: Alibaba's Qwen model family
- Doubao: ByteDance's AI models
- Qianfan: Baidu's AI platform
- XunfeiXinhuo: iFlytek's AI models
- Ollama: Local model deployment
- Custom Providers: Any OpenAI-compatible API endpoint
💬 Interactive Chat Interface
- Real-time Streaming: Live response streaming from LLMs
- Tool Call Execution: Watch agents use tools in real-time
- Token Usage Tracking: Monitor API costs and usage statistics
- Model Information: Display provider and model info for each response
- Message Management: Edit, retry, and delete messages
- Session Management: Multiple chat sessions with auto-save
🔧 Developer-Friendly Features
- Local Storage: All data stored locally in browser (IndexedDB)
- Import/Export: Backup and share agent/tool configurations
- Hot Reload: Instant updates during development
- Error Handling: Comprehensive error messages and debugging info
- Responsive Design: Works on desktop and mobile devices
🐳 Docker Support
- Easy Deployment: Docker Compose for instant setup
- Development & Production: Separate configurations for different environments
- Health Monitoring: Built-in health checks
🚀 Quick Start
Option 1: Run with npx (Recommended)
npx agent-playgroundThis command will automatically download and start Agent Playground on your local machine at http://localhost:3001.
Option 2: Docker
# Clone the repository
git clone https://github.com/coldstone/agent-playground.git
cd agent-playground
# Start with Docker Compose
docker-compose up -dOpen http://localhost:3001 in your browser. That's it! 🎉
Docker Commands
# Development mode (with hot reload)
docker-compose -f docker-compose.dev.yml up
# Production mode
docker-compose build
docker-compose up
# Test Docker configuration
./scripts/test-docker.sh
# Stop services
docker-compose downOption 3: Global Installation
npm install -g agent-playground
agent-playgroundOption 4: Local Development
git clone https://github.com/coldstone/agent-playground.git
cd agent-playground
npm install
npm run dev📦 Installation Requirements
For npm/npx installation:
- Node.js: Version 18.0.0 or higher
- npm: Version 8.0.0 or higher (comes with Node.js)
- Modern Browser: Chrome, Firefox, Safari, or Edge
For Docker installation:
- Docker: Version 20.0.0 or higher
- Docker Compose: Version 2.0.0 or higher (optional, for easier management)
- Modern Browser: Chrome, Firefox, Safari, or Edge
🔧 Development Setup
1. Clone the Repository
git clone https://github.com/coldstone/agent-playground.git
cd agent-playground2. Install Dependencies
npm install3. Start Development Server
npm run devThe application will start at http://localhost:3001.
4. Build for Production
npm run build5. Start Production Server
npm start📖 Usage Guide
1. Configure LLM Provider
- Open the LLM Configuration panel on the right
- Select your preferred provider (OpenAI, Deepseek, etc.)
- Enter your API endpoint and API key
- Choose a model from the dropdown
- Test the connection
2. Create Your First Agent
- Click the Agents button in the top toolbar
- Click New Agent to create an agent
- Fill in the agent name and description
- Use AI Generate to create instructions automatically
- Assign tools to your agent (optional)
- Save the agent
3. Build Custom Tools
- Click the Tools button in the top toolbar
- Use AI Generate to create tools from descriptions
- Or click Custom to manually define tool schemas
- Configure HTTP requests for API integration
- Test tools manually before assigning to agents
4. Start Debugging
- Select an agent from the welcome page
- Start a conversation to test agent behavior
- Watch tool calls execute in real-time
- Monitor token usage and API costs
- Iterate and improve your agent configuration
🏗️ Building and Deployment
Development Build
npm run devProduction Build
npm run buildLinting
npm run lintType Checking
npx tsc --noEmit📁 Project Structure
agent-playground/
├── public/ # Static assets and icons
├── src/
│ ├── app/ # Next.js app directory
│ │ ├── api/ # API routes
│ │ ├── debug/ # Debug pages
│ │ └── markdown-test/ # Markdown testing page
│ ├── components/ # React components
│ │ ├── agents/ # Agent management components
│ │ ├── chat/ # Chat interface components
│ │ ├── config/ # Configuration components
│ │ ├── layout/ # Layout components
│ │ ├── markdown/ # Markdown rendering components
│ │ ├── modals/ # Modal dialog components
│ │ ├── tools/ # Tool management components
│ │ └── ui/ # Reusable UI components
│ ├── hooks/ # Custom React hooks
│ ├── lib/ # Utility libraries and services
│ │ ├── clients/ # API client implementations
│ │ ├── generators/ # AI-powered generators
│ │ └── storage/ # Data persistence layer
│ ├── styles/ # CSS and styling files
│ └── types/ # TypeScript type definitions
├── bin/ # Executable scripts
└── scripts/ # Build and deployment scripts📝 License
This project is licensed under the MIT License - see the LICENSE file for details.
Happy Agent Building! 🚀
