Install from source
Run Niko from its source code on macOS, Linux or Windows. Choose this to change Niko's code or use a source installation. The desktop app is quicker to install on Mac and Windows. Linux x64 also has a Flatpak preview.
To run Niko on a VPS, cloud VM, or Mac mini and reach it from other devices, use Host your own server.
Requirements
Section titled “Requirements”| You need | Version or detail |
|---|---|
| Node.js | 24.21.0 or newer |
| pnpm | 10.34.5, enabled through Corepack |
| Docker | With Compose v2 and the Buildx plugin, running. For a Docker VM such as Colima, start with two CPUs and 8 GB of memory. |
| Git | Any recent version |
| Model connection | A supported model service with its required credentials, a ChatGPT plan that supports sign-in, or a local model server |
What pnpm start runs
Section titled “What pnpm start runs”pnpm start installs dependencies when they changed, builds the web app and starts four Docker containers: PostgreSQL, the workspace, the workspace's firewall and the browser. Then it starts the Niko server, which serves the web app on 127.0.0.1.
flowchart LR you([Your browser]):::accent -- access link --> server[Niko server<br/>and web app]:::accent server --> db[(PostgreSQL)] server --> ws[Workspace<br/>container] ws -- network --> fw[Firewall<br/>container] server --> br[Browser<br/>container] server -.-> model[Your model<br/>provider]:::muted
The workspace is where Niko runs commands and keeps files. The browser is where it visits websites. Neither of them receives your provider keys. The workspace reaches the network only through its firewall, which blocks private addresses.
pnpm start sets the browser and workspace CPU limits to fit the CPUs available to Docker. To check a Docker VM's allocation, run docker info --format '{{.NCPU}}'. If Niko runs slowly, stop Niko, raise the VM's CPU or memory allocation, then run pnpm start again to recalculate the limits. For example, to give an existing Colima VM four CPUs and 8 GB of memory:
colima stopcolima start --cpu 4 --memory 8pnpm startGet the code
Section titled “Get the code”git clone https://github.com/NeoSky-AI/niko.gitcd nikoSet up the Vault key
Section titled “Set up the Vault key”Niko encrypts your saved keys, logins and cards with a Vault key.
Nothing to do. Niko creates a key and keeps it in the macOS Keychain item com.neoskyai.niko.vault.
Nothing to do for a fresh install. Niko creates a private key at NIKO_DATA_ROOT/vault/master-key (.local/vault/master-key by default). Keep it with your backup; saved credentials can't be read without it.
You can instead set NIKO_VAULT_KEY yourself. If encrypted data already exists, restore its original key rather than generating a new one. See Vault configuration.
Create a key and add it as NIKO_VAULT_KEY=<key> to .env in the niko folder. Create the file if it doesn't exist.
node -e "console.log(require('crypto').randomBytes(32).toString('base64'))"Keep the key with your backup; saved credentials can't be read without it. If encrypted data already exists, restore its original key rather than generating a new one. See Vault configuration.
Start Niko
Section titled “Start Niko”-
Enable pnpm and start Niko. The first run takes a while.
Terminal corepack enablepnpm start -
When the server is ready, it prints a link such as
http://localhost:4310/#access=…. Open it once. Your browser keeps the access cookie, sohttp://localhost:4310works from then on. -
Follow the onboarding to connect a model and try a first task. See Your first conversation.
Run Niko day to day
Section titled “Run Niko day to day”| To | Do this |
|---|---|
| Stop Niko | Press Ctrl-C, then run docker compose stop to stop the containers. |
| Update Niko | Stop it, run git pull, then pnpm start. |
| Get a new link | Delete access-key in your data folder (.local/ by default) and restart. Otherwise the key stays the same across restarts. |
| Find your data | .local/ (or NIKO_DATA_ROOT) and the Docker volumes. The Vault key is in vault/master-key on Linux, the macOS Keychain item com.neoskyai.niko.vault, or your explicit NIKO_VAULT_KEY, which Windows needs. |
| Back up | Stop Niko, then copy your data folder (.local/ or NIKO_DATA_ROOT), the Docker volumes and the Vault key. |
Settings live in .env, and you need to restart after you change them. See Configuration.
Troubleshooting
Section titled “Troubleshooting”| You see | Do this |
|---|---|
Use Node.js 24.21.0 or newer. |
Install a newer Node.js and run pnpm start again. |
| Docker errors on start | Make sure Docker is running and docker compose version reports v2. |
the --chmod option requires BuildKit |
Install the Docker Buildx plugin and check that docker buildx version works. If DOCKER_BUILDKIT=0 is set in your environment, remove it or set it to 1. Then run pnpm start again. |
| A missing or unreadable Vault key | Restore the original key and check its permissions. Don't generate a replacement for encrypted data. See Vault configuration. |
| The port is in use | Set another PORT in .env. The default is 4310. |