Agent-OS web UI
Agent-OS provides a web UI to monitor and interact with OpenCode sessions running on your VPS.Setup
Agent-OS is installed by the VPS setup script (standard mode or higher). It runs as a systemd service on port 3000.Accessing Agent-OS
-
Via Tailscale (recommended)
- Install Tailscale on your mobile device
- Connect to your tailnet
- Open
http://your-vps-hostname:3000
-
Direct IP (if firewall allows)
- Open
http://your-vps-ip:3000 - Only works if you are on same network or have port forwarding
- Open
- Tailscale Funnel (external access)
Features
Session monitoring:- View active OpenCode sessions
- See real-time AI output
- Monitor file sync status
- Start new sessions
- Stop existing sessions
- Send commands to running sessions
- Responsive on phones/tablets
- Touch-friendly
Kimaki Discord integration
Kimaki adds Discord-based control for your OpenCode sessions, including voice message support.Installation
Install Kimaki during VPS setup:Setup
- Create Discord bot
- Discord bot creation at discord.com/developers
- Required intents
- Invite link
- Stores config in
~/.kimaki/
- Start Kimaki service
- Invite bot to your server
- Use invite link from setup wizard
- Create a dedicated Discord server for dev
- Bot creates channels per project
Usage
Text messages: Send a message in a project channel to start an OpenCode session. Kimaki creates a thread and starts the agent. Voice messages: Record a voice message in Discord. Kimaki transcribes it (Gemini) and processes it as text. Slash commands:/session <prompt>- start new session/resume <session>- resume previous session/abort- stop current session/add-project <project>- create channels for existing project/queue <message>- queue a follow-up message/model- change AI model for channel
Architecture
Each Discord channel maps to a project directory on your VPS. Each Discord thread maps to an OpenCode session.CI integration
Trigger Kimaki sessions from GitHub Actions:Multi-machine support
Run multiple Kimaki instances (one per VPS):Security considerations
- Prefer Tailscale when possible (encrypted, private)
- Enable auth if exposing to internet
- Use strong VPS passwords or SSH keys
- Keep Agent-OS updated:
npm update -g agent-os - Kimaki permissions: only trusted users can trigger sessions
- Optional: create a “no-kimaki” role to block specific users
Troubleshooting
Agent-OS issues
Cannot connect:- Verify Agent-OS is running:
- Check firewall allows port 3000:
- Verify Tailscale connection:
- Check logs:
- Reinstall if needed:
Kimaki issues
Bot not responding:- Check Kimaki service status:
- View logs:
- Verify bot token is configured:
- Restart Kimaki:
- Ensure Gemini API key configured during
npx kimakisetup - Check file size
- Verify Kimaki has voice permissions in Discord channel
- Reduce sync scope in Mutagen (ignore big dirs)
- Close unnecessary tabs
- Use WiFi when possible
- For Kimaki: Discord caches images, clear cache if needed
Tips
Agent-OS:- Bookmark the URL
- Add to home screen (app-like)
- Use split-screen on tablets
- Use a dedicated Discord server for dev
- Use voice messages for hands-free workflows
- Send long prompts as file attachments (Discord limits)
- Use
/queueto chain tasks