SuperBrain Server Installer & CLI
SuperBrain Server is an npm package acting as a command-line interface (CLI) wrapper for installing, configuring, and managing the SuperBrain Python backend. As of version 1.0.60, it provides a one-line setup for a self-hosted AI-powered second brain designed for Android devices, facilitating the analysis and organization of content from platforms like Instagram, YouTube, and the web. Its core functionalities include a multi-provider AI router for services like Groq, Gemini, OpenRouter, and Ollama, automatic background music identification via Shazam, and audio transcription using Groq Whisper with a local OpenAI Whisper fallback. The package simplifies the deployment process, handling Python virtual environment creation and dependency installation, and offers commands for status checking, updates, and network configuration (e.g., Ngrok). While specific release cadence is not explicitly stated, updates align with new features and improvements to the SuperBrain ecosystem, providing a robust, locally controlled alternative to cloud-based 'second brain' solutions.
Common errors
-
python: command not found
cause Python 3.10+ is not installed or is not accessible in the system's PATH environment variable.fixInstall Python 3.10+ from python.org and ensure it's added to your system's PATH during installation, or manually add it. -
Backend Not Reachable from Phone (user reported symptom)
cause The mobile device is on a different network than the server, or network firewall rules are blocking access to the server's port (default 5000).fixIf on a different network, use `ngrok http 5000` to expose the server publicly. If on the same network, check local firewall settings to ensure port 5000 is open.
Warnings
- gotcha The SuperBrain Server backend requires specific external system dependencies (Node.js 20+, Python 3.10+, and ffmpeg) to be pre-installed and available in the system's PATH. Failure to meet these requirements will prevent the backend from installing or running correctly.
- gotcha The initial run of `superbrain-server` (especially the first time on a new system) involves extensive setup, including unpacking files, creating a Python virtual environment, installing numerous Python dependencies, and an interactive configuration process for AI keys. This can take significant time and requires user interaction.
- gotcha The SuperBrain backend, along with its configuration and data, is permanently installed in a hidden directory within the user's home directory (`~/.superbrain-server` on macOS/Linux or `%USERPROFILE%\.superbrain-server` on Windows). Users should be aware of this location for troubleshooting, manual updates, or data management.
- gotcha After the SuperBrain backend server starts, connecting the Android mobile app requires manually copying the server's IP/URL and a generated 'Access Token' from the backend console into the app's settings. Incorrect configuration will prevent the app from connecting to your self-hosted server.
- gotcha If your mobile device is not on the same local network as your SuperBrain server, the app will be unable to reach the backend directly. This typically requires exposing the local server to the internet via a tunneling service.
Install
-
npm install superbrain-server -
yarn add superbrain-server -
pnpm add superbrain-server
Imports
- superbrain-server
import superbrainServer from 'superbrain-server';
npx -y superbrain-server@latest
- superbrain-server status
import { status } from 'superbrain-server';npx -y superbrain-server@latest status
- superbrain-server update
require('superbrain-server').updateBackend();npx -y superbrain-server@latest update
Quickstart
npx -y superbrain-server@latest