musonda
v1.0.28
Published
Musonda - Personal AI Assistant & Agent Harness running on an extensible Gateway with Discord channels, memory, tools, and any OpenAI-compatible model (OpenAI, Ollama, LM Studio, OpenRouter & more)
Maintainers
Readme
Musonda
A personal AI companion that remembers, helps, and stays available.
Musonda is an AI assistant you can run and make your own. It gets to know how you like to work, remembers the things that matter to you, and helps you carry ideas and tasks from one conversation to the next.
Talk to Musonda from your terminal, Discord, or Slack. Ask a question, save a note, set a reminder, look something up, or give it new abilities with plugins.
Meet Musonda
Most AI conversations disappear when the chat ends. Musonda is designed to be part of your day: available when you need it and able to remember useful context over time.
You decide its name, personality, communication style, and where you want to talk to it. Musonda can be a quiet helper in your terminal, a teammate in Slack, or a companion you message on Discord.
What can Musonda do?
- Remember what matters — preferences, goals, project details, and useful facts can carry into future conversations.
- Keep you on track — create one-time reminders or recurring routines using everyday language.
- Take and find notes — save ideas, lists, and personal notes, then ask for them later.
- Help with everyday questions — search the web, read pages, calculate, and work through a problem with you.
- Meet you where you work — chat in the terminal, Discord, Slack, or through another app connected to Musonda.
- Learn new abilities — install plugins and skills when you want Musonda to do more.
Things you can say
“Remember that I prefer short progress updates.”
“Remind me in 45 minutes to check the deployment.”
“Every weekday morning, help me prepare for stand-up.”
“Save this idea in my notes.”
“What do you remember about my current project?”
“Find a plugin that can help me work with GitHub.”
Getting started
You need Node.js 20 or newer and a model API key. Musonda is model-agnostic: use OpenAI, Ollama (local, no key), LM Studio, OpenRouter, Anthropic, Google, Groq, Mistral, DeepSeek, Together, or any OpenAI-compatible endpoint. Discord and Slack are optional—you can start entirely in your terminal.
Quick install (npm)
Install Musonda globally:
npm install -g musondaRun the interactive setup wizard:
musonda setupThen start chatting:
musonda cliInstall from source
Clone the repository:
git clone https://github.com/ngandugilbert/musonda.git
cd musonda
npm install
npm run buildRun the guided onboarding wizard:
npm run onboardOpen the terminal chat:
npm run cliThe setup guide helps you choose how Musonda should address you, how it should communicate, and which channels you want to connect.
To run the gateway in the background detached from the current terminal:
musonda start gateway --daemon
musonda cliRunning 24/7 as a background service (Linux / VPS)
Musonda can install itself as a managed systemd background service so that the gateway stays alive 24/7, starts automatically on system boot, and restarts if it encounters an unexpected error.
Install user-level service (recommended)
musonda service install --userUseful service management commands
# Check service status
musonda service status
# View live systemd logs
journalctl --user -u musonda -f
# Restart the service
systemctl --user restart musonda
# Stop the service
systemctl --user stop musonda
# Remove and disable the background service
musonda service uninstallTip for Linux servers and VPS instances: to allow user-level systemd services to continue running after logging out of your SSH session, enable lingering:
loginctl enable-linger $USERRunning with Docker
Musonda includes a production multi-stage Dockerfile and Docker Compose configuration.
- Copy the example environment configuration:
cp .env.example .env- Add your model credentials to
.env(generic or provider-specific):
# Hosted example (model id comes from the provider's live catalog —
# run `musonda model list openai` or pick interactively with `musonda model setup`)
MODEL_PROVIDER=openai
MODEL_NAME=<model-id-from-provider-catalog>
MODEL_API_KEY=sk-...
# Local (Ollama example — no key needed; id from `ollama list` / `musonda model list ollama`)
MODEL_PROVIDER=ollama
MODEL_NAME=<model-id-from-ollama-list>
MODEL_BASE_URL=http://localhost:11434/v1Or configure interactively at any time (recommended — no ids to look up by hand):
musonda model setup # pick provider → pick model from live list
musonda model ollama/<model-id> # switch in one command
musonda model list openrouter # live catalog from the provider- Launch the container:
docker compose up -dCheck the container logs:
docker compose logs -f musondaMake it yours
Musonda starts with useful everyday abilities, but it does not have to stay the same. You can shape its personality, connect the channels you enjoy using, and add plugins for the kind of work you do.
# Discover available plugins in the ecosystem
musonda find plugins
# Add a plugin (curated name, GitHub repo, or local path)
musonda add plugin example-calc
musonda add plugin agentplugins/agent-plugins-example
musonda add plugin ./path/to/local-plugin
# List installed plugins, skills, and MCP tools
musonda list plugins
# Check for and apply updates to Musonda and installed plugins
musonda updateYou can also ask Musonda to find, install, explain, or remove plugins during a conversation.
Everyday commands
| Command | What it does |
|---|---|
| musonda | Opens the interactive dashboard and menu |
| musonda setup | Runs the personal onboarding wizard (persona → model picker → channels) |
| musonda model | Shows active model + every provider's key status |
| musonda model setup | Interactive picker: provider → live model list → key (saved per provider) |
| musonda model <provider>/<model-id> | Switches model in one command (id from musonda model list <provider>) |
| musonda model list [provider] | Lists models from the provider's live /models endpoint |
| musonda connect model | Alias for musonda model setup |
| musonda connect <provider> | Alias for musonda model setup (e.g. deepseek, ollama) |
| musonda change model <provider>[/<model>] | Alias for musonda model <provider>[/<model>] |
| musonda connect <channel> | Connects a channel (telegram|discord|slack) without onboarding |
| musonda connect langfuse | Connects Langfuse tracing (agent observability) |
| musonda disconnect langfuse | Disables Langfuse tracing (keys are kept) |
| musonda langfuse status | Shows Langfuse tracing status |
| musonda disconnect <channel> | Disables a connected channel (tokens are kept) |
| musonda channels | Shows channel connection status |
| musonda cli | Starts an interactive terminal conversation |
| musonda start gateway | Starts the Gateway server in foreground mode |
| musonda start gateway --daemon | Starts the Gateway server in detached background mode |
| musonda stop gateway | Stops the running background Gateway daemon |
| musonda restart gateway | Restarts the background Gateway daemon |
| musonda service install | Generates and installs a persistent systemd unit (.service) |
| musonda service status | Displays systemd service state, scope, and paths |
| musonda service uninstall | Stops, disables, and removes the systemd background unit |
| musonda status | Shows whether Musonda is running, connected channels, and model |
| musonda doctor | Diagnoses runtime, configuration, storage, service, and keys |
| musonda update | Checks and applies updates for Musonda and plugins |
| musonda add plugin <source> | Installs and mounts an Agent Plugin or MCP tool |
| musonda remove plugin <name> | Uninstalls an Agent Plugin and unregisters its tools |
| musonda list plugins | Lists all active plugins, skills, and MCP servers |
| musonda help | Shows comprehensive CLI help and usage examples |
Configuration
Musonda stores user configuration in ~/.musonda/config.json.
Once set up, the saved config is authoritative: switching with
musonda model … always takes effect immediately (env vars only seed a fresh
install — set MODEL_FORCE_ENV=true to let env override saved config, e.g. in
ephemeral containers). Keys are saved per provider, so switching models never
asks for a key twice and never reuses the old provider's key/URL.
You can also supply environment variables in a .env file in your working directory:
| Environment Variable | Description | Default |
|---|---|---|
| MODEL_PROVIDER | Model provider (openai, meta, ollama, lmstudio, openrouter, anthropic, google, groq, mistral, deepseek, together, custom) | openai |
| MODEL_NAME | Model id exactly as listed in the provider's live /models catalog (see musonda model list <provider>) | (none — pick with musonda model setup) |
| MODEL_API_KEY | Provider API key (not needed for ollama/lmstudio) | |
| MODEL_BASE_URL | Custom base URL (defaults to https://api.meta.ai/v1 for meta) | provider default |
| MODEL_API | API dialect: auto / chat (universal) / responses (OpenAI/Meta) | auto |
| OPENAI_API_KEY / OPENAI_MODEL / OPENAI_BASE_URL | Legacy fallbacks (still supported) | |
| ANTHROPIC_API_KEY / GOOGLE_API_KEY / OPENROUTER_API_KEY / GROQ_API_KEY / META_API_KEY | Provider-specific keys (auto-detected) | |
| LANGFUSE_SECRET_KEY / LANGFUSE_PUBLIC_KEY | Langfuse tracing keys (or use musonda connect langfuse) | |
| LANGFUSE_BASE_URL | Langfuse server (Cloud EU default) | https://cloud.langfuse.com |
| LANGFUSE_ENABLED | Enable Langfuse tracing (true/1) | false |
| PORT or GATEWAY_PORT | HTTP Gateway listening port | 4141 |
| HOST or GATEWAY_HOST | HTTP Gateway binding address | 127.0.0.1 |
| DISCORD_BOT_TOKEN | Discord Bot token (optional) | |
| SLACK_BOT_TOKEN | Slack Bot token (optional) | |
| SLACK_APP_TOKEN | Slack App-level token for Socket Mode (optional) | |
License
MIT License.
