Your Personal AI Assistant in the Terminal
A lightweight, extensible command-line AI assistant powered by GitHub Copilot
Features β’ Quick Start β’ Usage β’ Daemon Mode β’ Documentation
- π Fast & Lightweight β Quick AI queries right from your terminal
- π Extensible Plugin System β Custom tools, timers, and integrations
- π¬ Multiple Interfaces β Terminal TUI, Discord bot, or CLI commands
- β‘ Daemon Mode β Persistent background operation with shared state
- π― GitHub Copilot Support β Leverage GitHub Copilot's AI capabilities
Peely brings AI assistance directly to your command line with a focus on speed, flexibility, and ease of use. Whether you need quick answers, want to run a Discord bot, or need a persistent AI assistant running in the background, Peely has you covered.
- Node.js (LTS version 14 or higher)
- npm (bundled with Node.js)
- GitHub Copilot subscription (for AI features)
Versions prior to 0.9.4 are vulnerable to a critical security issue. Please update to the latest version immediately.
# Clone the repository
git clone https://github.com/real-kijmoshi/peely.git
cd peely
# Install dependencies
npm install
# Start interactive mode
npm startAlternatively, install the published package from npm:
# Install globally to use the `peely` CLI
npm install -g peely
# Or install locally in a project
npm install peely
# Run installed CLI
peely# Run the setup wizard
npx peely setup
# Configure your AI model
npx peely model
# Start using Peely!
npx peely chat "Hello, Peely!"Launch the interactive TUI for a conversation-style experience:
npm start
# or
npx peelyAvailable Commands:
/helpβ Show available commands/clearβ Clear conversation history/statusβ Show configuration status/pair discord <code>β Pair your Discord account/exitor/quitβ Exit the application
Quick AI queries without entering interactive mode:
# Ask a question
npx peely chat "What's the weather like?"
# Get help
npx peely help
# Check status
npx peely statusRun Peely as a Discord bot:
# Set up Discord bot token
npx peely pair discord setup
# Start Discord bot
npx peely discordRecommended for the best experience!
The daemon runs Peely in the background, providing persistent operation, faster responses, and shared state across all interfaces.
npx peely daemon start
# or
npm run daemon:startThe daemon will:
- β Start the Discord bot (if configured)
- β Handle plugin events and timers
- β Accept connections from CLI clients
- β Maintain conversation history
- β Run in the background until stopped
Once running, all CLI commands automatically connect to the daemon:
# Chat (connects to daemon automatically)
npx peely chat "Explain quantum computing"
# Check daemon status
npx peely daemon status
# Restart daemon (useful after updates)
npx peely daemon restart
# Stop daemon
npx peely daemon stopWhen you update Peely, simply restart the daemon to reload all code:
git pull
npx peely daemon restartNo configuration loss! Your conversation history and settings are preserved.
The daemon architecture provides several benefits:
| Legacy Mode | Daemon Mode β¨ |
|---|---|
| Separate processes for each interface | Single persistent process |
| No shared state | Shared conversation history |
| Manual restarts required | Hot reload with daemon restart |
| Slower startup | Instant CLI responses |
For detailed architecture information, see DAEMON.md.
- DAEMON.md β Detailed daemon architecture and IPC protocol
- GitHub Copilot Setup β Guide to using GitHub Copilot API
peely/
βββ cli.js # Main CLI entry point
βββ src/
β βββ ai/ # AI provider integrations
β βββ daemon/ # Daemon server and client
β βββ interfaces/ # Terminal and Discord interfaces
β βββ plugins/ # Plugin system
β βββ utils/ # Utilities and configuration
βββ data/ # Persistent data storage
npm testConfiguration is stored in config.json. You can modify settings using CLI commands or by editing the file directly.
- π Check the documentation
- π Open an issue
- π¬ Join the discussions
Contributions are welcome! Here are some ways you can help:
- π Report bugs and issues
- π‘ Suggest new features or improvements
- π Improve documentation
- π§ Submit pull requests
This project is licensed under the MIT License. See the LICENSE file for details.
real-kijmoshi
- GitHub: @real-kijmoshi
Made with β€οΈ by the Peely team
