On this page

Deployment FAQ

Last updated: 2026-11-22

This page is organised around problems encountered while deploying. All examples are placeholders; never fill in or publish real keys, authorization codes or administrator passwords. For variable syntax, see Environment variable troubleshooting.

Install and startup

wasmx is not found after installation. Make sure the Node/npm global directory is on PATH and reopen the terminal. You can also run ./wasmx from the deployment directory.

Startup fails with Address already in use. The port is taken. Stop the old instance or change WASMX_ADDR; containers must bind 0.0.0.0.

Startup fails with Error parsing line. A .env value contains an unquoted space, non-ASCII character, # or quote. Quote the value and restart.

Startup fails because JWT_SECRET is missing. It is required. Generate a random string of at least 32 characters; never use the example value.

What is the initial administrator password? It comes from BOOTSTRAP_ADMIN_* in .env. It only applies when the database is empty on first start; if the deployment was already initialised, use the password set at that time.

Registration and captcha

How do I enable or disable registration? Set OPEN_REGISTRATION=true or false in .env and restart. When disabled, the login page hides the sign-up entry.

The sign-up page says registration is closed. Self-service registration is disabled. Ask an administrator to open it or create an account for you.

No verification email arrives. Check the address, spam folder and SMTP configuration; make sure SMTP_USERNAME is the sender. If the log says SMTP 未配置, the three required variables are incomplete.

The API returns the plaintext captcha code. The operator enabled a development-only debug switch. Ask them to disable it; production must never return plaintext codes.

Enterprise mail fails with 535. Enterprise mail usually uses smtp.qiye.163.com; personal mail uses smtp.163.com. Use the authorization code, not the mailbox password, and quote the code if it contains #.

AI models

An AI conversation reports model '...' not configured. The catalog has the name but no usable provider resolved. Add your own key under Settings → AI assistant → Model key configuration for the current account. The server .env should not hold shared model API keys (DeepSeek/OpenAI/Anthropic/Ark/Seedance, etc.); existing variables still work, but a shared key leaks through backups and logs and bills every user to one credential. Keep only base_url, model names and switches there.

How do I configure text, image, video and voice models? Text uses DeepSeek or Qianwen; image and voice use Qianwen; video uses Qianwen or Volcano Ark Seedance; music uses Stability. See Model configuration.

The model is listed but calls fail. Check the provider key, account balance/quota, egress network and model id, then read the upstream error in the host log. Never paste keys into tickets or chats.

How do I limit usage? Set AGIX_DEFAULT_DAILY_QUOTA and combine it with account permissions and host rate limits. A value of 0 disables metering.

Connectors and authorization

Claude/Codex in Contacts fails with provider unavailable. The deployment must declare the provider in conn.providers in wasmx.json and the host machine must have the matching CLI installed and signed in. Restart after the change.

Confirming authorization returns 403 非法 Origin. Ask the operator to add the current access origin to the approval allowlist and restart.

Why must the connector run on a trusted host? It reuses the AI client login state and tool permissions on that host; credentials cannot simply be moved elsewhere. You can keep the connector on a separate trusted machine. In the current deployment the approval page is host/allowlist-only; a remote host needs an SSH tunnel/VPN.

The page still waits for confirmation after authorizing. Refresh the page; make sure the approval page was opened on the machine running the connector, with the same address/account as the server. A restart clears pending approvals, so start the action again.

Platforms and containers

Does Keragi support Docker? Yes, for single-host Docker/Compose. The official keragi/wasmx launcher image (linux/amd64; tag matches the current release) is imported with docker load and started with docker compose up -d; image and Compose files are at https://gitee.com/keragi/keragi-docker . The image does not contain the host binary or WASM resources; it fetches them from /downloads/latest at startup, and offline deployments mount the official tgz directory. It is single-host/single-database today; do not use docker compose up --scale. K8s/HA remain under validation. Data volumes, reverse proxy, WebSocket and backup/upgrade rules still apply.

Does Keragi support a Windows server? Yes. Since 1.1.4 the server ships for both Linux x86_64 and Windows x64; Windows installer/portable clients are also available. Use the Windows installer or zip, and configure boot startup with Task Scheduler/NSSM. Linux VM/container deployment can also be evaluated per project.

Network and reverse proxy

The frontend loads but API calls 404 or fail with CORS. Make sure /userx, /msgx, /agix and /conn are proxied to the host.

Real-time messages do not update. The reverse proxy must forward WebSocket upgrades for the messaging service. Check the proxy configuration and timeouts.

How should I expose it publicly? Expose only the reverse proxy/TLS endpoint, never the host port directly. In production, disable plaintext captcha codes, disable self-service registration when not needed, and use strong passwords and backups.

Data, upgrades and licensing

Where is the data? How do I back it up? SQLite data and uploaded files live under data/ and uploads/; stop the service and back up WAL/SHM as well. SQLite has a single writer, so do not run multiple replicas writing the same files. Manual/scripted backup is the current default; automatic backup is planned and can be provided per project.

How do I upgrade? Back up data/ (including WAL/SHM), uploads/ and .env; host, WASM resources and database must be upgraded/rolled back together. Do not overwrite .env or data/.

Where can I read about licensing? See Licensing and pricing. One software version with Free, Pro and Enterprise subscription plans: Free requires no subscription and is personal, non-commercial only; commercial use requires an active paid plan or commercial license.

Still stuck?

Follow “symptom → log → configuration”: wasmx.log usually names the missing variable, SMTP authentication failure, unavailable provider or occupied port. If it is still unresolved, contact the deployment operator or contact us with redacted logs.