From zero to AI-powered messaging in under 5 minutes.
corepack enablenpm install -g opensoul@latest
opensoul onboard --install-daemon
The interactive wizard will guide you through API key configuration, channel pairing (e.g. WhatsApp QR scan), and daemon installation.
opensoul channels login
opensoul gateway --port 18789
Open http://127.0.0.1:18789 to access the Web Control UI dashboard.
git clone https://github.com/NJX-njx/opensoul.git
cd opensoul
pnpm install
pnpm build
Linux / macOS:
export OPENSOUL_SKIP_CHANNELS=1
export OPENSOUL_GATEWAY_TOKEN=dev-token
pnpm gateway:dev
Windows (PowerShell):
$env:OPENSOUL_SKIP_CHANNELS = "1"
$env:OPENSOUL_GATEWAY_TOKEN = "dev-token"
node scripts/run-node.mjs --dev gateway
OPENSOUL_SKIP_CHANNELS=1 skips loading channel extensions that require external
API credentials — ideal for local development.
Navigate to http://127.0.0.1:19001 (dev default port).
opensoul onboard
opensoul gateway run
For production, set your gateway token via OPENSOUL_GATEWAY_TOKEN or
gateway.auth.token in config.
Config lives at ~/.opensoul/opensoul.json (JSON5 format with
${ENV} substitution).
Place these in .env or ~/.opensoul/.env:
OPENAI_API_KEY=sk-...
ANTHROPIC_API_KEY=sk-ant-...
GEMINI_API_KEY=AIza...
OPENSOUL_GATEWAY_TOKEN=your-secret-token
{
channels: {
whatsapp: {
allowFrom: ["+15555550123"],
groups: { "*": { requireMention: true } },
},
},
messages: {
groupChat: { mentionPatterns: ["@opensoul"] }
},
}
| Symptom | Likely Cause | Fix |
|---|---|---|
| Gateway exits immediately | Missing gateway token | Set OPENSOUL_GATEWAY_TOKEN |
| Channel startup fails | Missing external credentials | Use OPENSOUL_SKIP_CHANNELS=1 |
| Port conflict | Port already in use | Change gateway.port in config |
| API keys not found in service | Shell env not inherited | Put keys in ~/.opensoul/.env |