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.
- 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
- 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
- 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
- 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
- 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
- Easy Deployment: Docker Compose for instant setup
- Development & Production: Separate configurations for different environments
- Health Monitoring: Built-in health checks
npx agent-playgroundThis command will automatically download and start Agent Playground on your local machine at http://localhost:3001.
# 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! π
# 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 downnpm install -g agent-playground
agent-playgroundgit clone https://github.com/coldstone/agent-playground.git
cd agent-playground
npm install
npm run dev- 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
- 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
git clone https://github.com/coldstone/agent-playground.git
cd agent-playgroundnpm installnpm run devThe application will start at http://localhost:3001.
npm run buildnpm start- 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
- 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
- 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
- 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
npm run devnpm run buildnpm run lintnpx tsc --noEmitagent-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
This project is licensed under the MIT License - see the LICENSE file for details.
Happy Agent Building! π

