dreamly
v0.6.9
Published
Dreamly - AI Agent Platform with Claude Code Integration
Maintainers
Readme
Dreamly 🌖
Dreamly is an AI Agent Platform with seamless Claude Code integration, providing a powerful web-based interface for AI assistance and automation.
Installation
Global Installation
Install Dreamly globally using npm:
npm install -g dreamlyLocal Installation
You can also install it locally in your project:
npm install dreamlyQuick Start
After installation, start Dreamly server:
dreamlyThis will start the Dreamly server with default settings (typically on port 3001).
Command Line Options
dreamly [options]
Options:
--port <number> Port number (default: 3001)
--host <string> Host address (default: localhost)
--token <string> Authentication token
--skip-auth-token Skip authentication token requirement
--help Show helpExamples
# Start on custom port
dreamly --port 8080
# Start with custom host
dreamly --host 0.0.0.0 --port 3001
# Start without authentication
dreamly --skip-auth-tokenFeatures
- 🤖 Claude Code Integration - Seamless integration with Anthropic's Claude Code
- 🌐 Web Interface - Modern, responsive web UI for AI interactions
- 🔧 MCP Support - Model Context Protocol for enhanced capabilities
- 🔐 Secure - Built-in authentication and permission management
- 📱 Mobile Support - QR code authentication for mobile access
- 🔔 Notifications - Real-time notifications for important events
- 🎯 Agent Platform - Create and manage custom AI agents
Development
Prerequisites
- Node.js >= 20.19.0
- npm or yarn
Local Development
- Clone the repository:
git clone https://github.com/mengshengwei/dreamly.git
cd dreamly- Install dependencies:
npm install- Start development server:
npm run dev- Build for production:
npm run buildScripts
npm run dev- Start development servernpm run build- Build for productionnpm run start- Start production servernpm test- Run testsnpm run lint- Run linternpm run typecheck- Run type checking
Configuration
Dreamly can be configured through:
- Command line arguments
- Environment variables
- Configuration files in
~/.dreamly/directory
Claude Code Router (CCR) Integration
Dreamly now integrates with Claude Code Router (CCR) to provide enhanced model routing and API management capabilities. During installation, CCR is automatically configured with Dreamly's default settings.
Automatic Setup: When you install Dreamly, the postinstall script will:
- Install Claude Code Router globally (if not already installed)
- Configure CCR with Dreamly's default provider settings
- Set up the CCR configuration at
~/.claude-code-router/config.json
Default Configuration: The default CCR configuration uses Dreamly's API endpoint with the following settings:
- Provider:
dreamy - API Base URL:
https://fkyrxaimefqr.sealosbja.site/v1/chat/completions - Default Model:
anthropic/claude-sonnet-4 - Router strategy: Uses Dreamy provider for all routing scenarios (default, background, think, longContext, webSearch)
Custom Configuration: You can customize the CCR configuration by:
- Editing
~/.claude-code-router/config.jsondirectly - Adding additional providers
- Modifying router strategies
- Setting custom API keys
After making changes to the CCR config, restart the CCR service:
ccr restartHow it Works:
- Dreamly automatically detects if CCR is installed and uses it to launch Claude Code
- If CCR is available, commands are routed through
ccr codeinstead of directclaudeCLI - If CCR is not found, Dreamly falls back to using the standard Claude CLI
For more information about Claude Code Router configuration options, visit the CCR GitHub repository.
FRP Tunnel Configuration
Dreamly supports built-in FRP (Fast Reverse Proxy) tunnel to expose your local server to the internet. To enable it, add the following configuration to your ~/.dreamly/config.json:
{
"frpc": {
"enabled": true,
"serverAddr": "101.201.82.35",
"serverPort": 8888,
"proxies": [
{
"name": "dreamly",
"type": "tcp",
"localIp": "127.0.0.1",
"localPort": 8883,
"remotePort": 5000
}
]
}
}Configuration options:
enabled: Enable/disable the FRP tunnel (default: false)serverAddr: FRP server addressserverPort: FRP server portproxies: Array of proxy configurationsname: Unique name for the proxytype: Proxy type (tcp,udp,http,https)localIp: Local IP address (usually127.0.0.1)localPort: Local port to forward (your Dreamly server port)remotePort: Remote port on the FRP server (for tcp/udp)customDomains: Custom domains (for http/https)
Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This project is licensed under the Apache-2.0 License - see the LICENSE file for details.
Support
- 🐛 Issues: GitHub Issues
- 💬 Discussions: GitHub Discussions
- 📧 Email: Contact the maintainer
Acknowledgments
- Built with Claude Code
- Powered by Anthropic's Claude AI
- UI components from Radix UI
- Styling with Tailwind CSS
