Skip to main content
The only requirement is the Docker CLI.

Quick start

Just want to run Genesis locally? Here’s how:
  1. Install Docker.
  2. Get the install script by contacting [email protected], and run it once to install Genesis.
  3. Start the Genesis server with ~/bin/genesis_server.
  4. Open the Genesis UI in your browser at http://localhost:8080.
  5. Connect an LLM provider from Config -> AI Providers, or with the config API (see “Configuring the LLM provider” below).
Genesis is now running locally on your machine. Until step 5 succeeds the server starts and answers, but the bots have no LLM. After connecting a provider, start a conversation in the Genesis UI.

Need the latest version?


Installation

Get the install script by contacting [email protected], then run it. It installs two scripts in ~/bin:
  • genesis_server — Local Genesis server with persistent SQLite database
  • genesis_update — Pulls latest container version
The installer no longer provides the legacy genesis_cli prompt client or mcp_bridge launcher; use the Genesis UI to start conversations. On a new install, the installer asks for two names: your company (the client name, e.g. acme) and this install (the instance name, e.g. prod2). It writes them to ~/.genesis/config.env. To install without prompts, set both first:
The installer asks on your terminal even when the script is piped to bash, as in curl … | bash. With no terminal at all, as in CI, it stops before writing any file if either name is missing. On Windows, install.ps1 -Silent reads the same two variables, and so does a run whose input is redirected. If config.env already exists, the installer leaves it as it is and prints a reminder when the names are missing. See Naming this install.

Back up the install encryption key

When the install does not use GENESIS_MASTER_KEY_REF, the installer creates a random GENESIS_MASTER_KEY once and stores it in the install’s config.env (~/.genesis/config.env on Linux and macOS); it also marks the install so Genesis can move credentials saved by older versions onto this key. Back up config.env securely with the install’s persistent data: without that exact key, saved credentials cannot be read. The installer preserves the key when it rebuilds the configuration file. If the key line is missing from a marked install, Genesis will not generate a replacement; restore the original line from a backup and restart the server. If Docker starts without either the configured key or a key reference, the dashboard shows an encryption-key page instead of opening the app: saved credentials cannot be read until the original GENESIS_MASTER_KEY line is restored in config.env and the server restarted.

genesis_server command line arguments

Options

Examples

Available images

  • genesis-back-front-dev — Built from back/front-dev branch
The Genesis server image includes the Databricks CLI for Asset Bundle actions; see the databricks_action reference for usage.

Exposed ports

  • 8080 — FastAPI (Primary system with React GUI and modern APIs)
  • 8082 — Flask (external integrations)
  • 21234 — Shell In A Box support shell (Snowflake Native App only, SPCS_MODE=true; its login stays locked until an admin unlocks it)
The standalone container no longer exposes port 8501. Use the React UI served by FastAPI on port 8080. The application images built from container/Dockerfile.app and container/Dockerfile.app.prebuilt set GENESIS_BIND_LISTENERS_FOR_OUTPOSTS=TRUE by default. This binds Genesis’s wildcard listeners to explicit addresses so an Outpost can route to a customer service even when it uses a port Genesis also uses, such as 8080. Genesis can serve an offline Mintlify export from the same FastAPI backend that serves the app (/client-docs, /docs/..., /api-reference/...). Whether in-app documentation links (for example Help, changelog links) open this internal export or hosted Mintlify is a runtime setting — the unified app-config flag docs.use_internal_docs (default true). Leave it true to keep UI links inside the running deployment, or set it false (Admin → Advanced Settings → docs, the Genesis config file, or GENESIS__DOCS__USE_INTERNAL_DOCS=false) to open the hosted pages at docs.genesiscomputing.com directly. Only if Mintlify JWT authentication is enabled for the hosted site does Genesis need a PKCS#8 Ed25519 signing key, configured through the secret field docs.mintlify_jwt_private_key or its default MINTLIFY_JWT_PRIVATE_KEY environment variable. No frontend rebuild is required to change the routing flag; docs routing is not controlled by a build-time Vite variable. The static export directory defaults to config/genesis-docs-static in the repo and GENESIS_DOCS_STATIC_FOLDER=/app/config/genesis-docs-static in container images. Generate it locally with make offline-docs (runs scripts/docs/export_mintlify_offline.py; run git lfs pull first so image assets are hydrated). By default, builds from container/Dockerfile.app and container/Dockerfile.app.prebuilt run the offline docs export. A CI build can instead stage its checked export, including docs/index.html, at container/.prebuilt-docs/docs and pass --build-arg PREBUILT_DOCS=true; without that argument, PREBUILT_DOCS=false rebuilds the local export. The checkout used by container/Dockerfile.app hydrates Git LFS objects, so screenshots arrive as real bytes in the export; --allow-missing-local-assets remains a guard for a future page that references an asset before adding it. Whichever path supplies the site, the image build removes Mintlify, npm, and Puppeteer build caches (/root/.mintlify, /root/.npm, /root/.cache/puppeteer, /root/.config/mintlify) so a build-only chrome-for-testing binary is not shipped in the final image — see Mintlify docs-export cleanup. For a faster local build, make -C container build uses Dockerfile.app.prebuilt and copies in the dashboard built on the host; its application code and image setup match Dockerfile.app. This Make target passes GENESIS_COMMIT_SHA and a UTC BUILD_TIMESTAMP automatically. For a direct build with either Dockerfile, pass GENESIS_COMMIT_SHA to include the source commit in the image’s healthcheck and MCP status, and BUILD_TIMESTAMP to include the build time in /api/health/build-info; both args default to an empty string:
The default Dockerfile.app target (genesis) and the genesis-spcs target the Snowflake Native App uses are the same image: the Outpost tunnel runs as a Genesis Python worker, so neither carries a separate tunnel binary. Build the Native App image with --target genesis-spcs when using Dockerfile.app, or run make -C container build TARGET=genesis-spcs to build it locally (the target name is appended to the normal image tag). Outposts are not available in the Native App; see Genesis Outposts. For a local make offline-docs run (outside Docker), the export still fails loudly on unhydrated Git LFS pointers or missing local assets — run git lfs pull first if you need every screenshot present in the static export.

Remote Genesis App runner image

Remote Genesis Apps (Docker, EKS, Railway) run inside the lightweight genesis-app-runner image built from container/Dockerfile.app-runner:
The image uses python:3.12-slim and bundles genesis_spcs_auth at /opt/genesis/genesis_spcs_auth so runner.py can obtain Snowflake OAuth tokens for SPCS ingress when GENESIS_SPCS_MODE=true and the related GENESIS_SPCS_USER, GENESIS_SPCS_ENDPOINT, and private-key variables are set. The image adds the microapp runtime_support/ shim to PYTHONPATH so interpreter startup (sitecustomize.py) installs the same Genesis API token forwarding used by locally hosted apps. That patch injects fresh X-Genesis-App-Token values on outbound requests and urllib.request calls — swapping stale startup tokens for per-request viewer tokens or rotating process tokens — so long-lived remote dashboards do not start returning 401 on dataset calls after the token TTL (~6 hours).

Sandbox Claude Code runner image

The optional sandbox thread runner and the optional direct CLI terminal use a separate container image that bundles Node.js, Python, git, the @anthropic-ai/claude-code CLI, and tmux. The main Genesis image does not include the Claude Code CLI, so operators build this image alongside the Genesis server when enabling either feature. The thread runner uses one container per thread; direct CLI terminal uses one persistent workspace container per user and named tmux sessions so a Claude Code process can survive a terminal disconnect or backend restart. Build from the repository root:
This build installs the latest available Claude Code CLI by default. To pin the CLI version used in the image, pass the CLAUDE_CODE_VERSION build argument:
The image runs as the non-root node user (uid 1000) with /workspace as the working directory. At container start, Genesis injects ANTHROPIC_BASE_URL (from GENESIS_SANDBOX_RUNNER_PROXY_BASE_URL or GENESIS_CLI_TERMINAL_PROXY_BASE_URL) and a scoped token as ANTHROPIC_API_KEY so LLM calls route through Genesis’s sandbox LLM proxy and the real org key never enters the sandbox. Snowsql, dbt, and AWS CLIs are not pre-installed — add them per deployment as needed to keep cold-start lean. Claude Code is installed in a node-owned npm prefix, so it can update itself between sessions without requiring root access. The npm bin directory is appended to PATH for regular and login shells; this keeps the image’s root-owned system CLI launchers from being shadowed by files created inside the sandbox. Configure Genesis with GENESIS_SANDBOX_RUNNER_BOT_IDS and GENESIS_SANDBOX_RUNNER_PROXY_BASE_URL before starting the server. On Docker Desktop, host.docker.internal usually reaches the host from inside the sandbox container; on Linux, use the host IP or set GENESIS_SANDBOX_RUNNER_NETWORK=host.

Container image security hardening

Genesis production container images (genesis, Snowflake Native App service images, and Helm-deployed images) are built from container/Dockerfile.base. The final base-image steps harden the runtime filesystem:
You cannot install Debian packages inside a running Genesis container with apt or dpkg. Tools such as ripgrep (rg), Playwright browsers, and Python dependencies are pre-installed at image build time. If you previously layered a custom Dockerfile on top of Genesis images solely to strip apt/dpkg, that wrapper is no longer necessary.
When building custom application images from container/Dockerfile.app or container/Dockerfile.app.prebuilt, all OS package installs happen in the base image — downstream Dockerfiles copy application code and run the docs export without calling apt. The auxiliary genesis-app-runner image (container/Dockerfile.app-runner) builds from upstream Python/Playwright bases, not Dockerfile.base, so it is unaffected.

Out-of-process wedge diagnostics

Every Genesis container image starts container/wedge_sentinel.py in the background from container/launch.sh (before Tailscale and before the SPCS/standalone fork). The sentinel runs on the system Python interpreter (/usr/local/bin/python3 -I -S), not /app/.venv, so it does not share site-packages or sys.path with the Genesis process it observes. In-process diagnostics such as SYS_PRESSURE, LOOP_IDENTITY, and the loop-stall dump from GEN-2398 are emitted from inside the Genesis Python process. When that process wedges, those lines stop at the same instant. The wedge sentinel keeps writing compact WEDGE_SENTINEL lines to container stdout on a fixed interval (default 60 s) so a hang can still be diagnosed from exported logs without shell access to the container. The loop-stall dump itself (all Python thread stacks, written by faulthandler from outside the stalled interpreter) goes to container stderr on SPCS and wherever the Genesis image runs without a GENESIS_DISTRIBUTION of docker or helm, the managed chart included. Under Docker and the Genesis Helm chart, whose app.log is what log sharing sends, it goes to logs/faulthandler.log instead; launch.sh copies that file to stderr as it is written, and Genesis adds it to app.log once the loop recovers or at the next start. Container output therefore shows such a dump twice: as it is written, and again as the FAULTHANDLER_DUMP error entry when it is added to app.log. On Snowflake Native App / SPCS deployments, stdout is exported to the customer’s event table via the service spec’s logExporters configuration. See Snowflake Native App — wedge diagnostics in exported logs for how to query those lines.

Line format and key fields

Each sample is one line in the same house style as SYS_PRESSURE and MOUNT_HEALTH_FAILURE: an WEDGE_SENTINEL token followed by space-separated key=value pairs (units are baked into key names). Example:
Startup and disable messages are written to stderr with the [wedge_sentinel] prefix (also exported on SPCS). A successful start logs [wedge_sentinel] started pid=… interpreter=/usr/local/bin/python3.

Environment variables

These are plain container environment variables (not APP_CONFIG fields). The sentinel honours them directly because it starts before the database exists. On non-Linux hosts (no /proc), the sentinel logs once to stderr and exits without failing container startup. If the script or a system python3 interpreter is missing, launch.sh logs a disable message and continues under set -e.

Configuration

Installation creates ~/.genesis/config.env, which carries the container’s metadata-store settings:

Naming this install

Genesis names each install as <client>.<instance>, for example acme.prod2. It uses this name on everything the install sends to the vendor: the metrics upload (its instance field), enhancement requests and its logs. Without it, the vendor cannot tell which customer an install belongs to.
  • Client name: your company. Genesis uses the first one it finds:
    1. the client name in your licence;
    2. GENESIS__SERVER__CLIENT_NAME (the server.client_name setting);
    3. on Snowflake, your Snowflake organisation.
  • Instance name: this install, from GENESIS__SERVER__INSTANCE_NAME (the server.instance_name setting). If it is not set, Genesis derives one.
If a name is missing, nothing breaks. The install reports as unknown.<instance>, and admins see a banner in the UI asking them to set the names. You can also set them under Config > Advanced Settings > Server. A value in config.env wins over one set there. After editing config.env, restart genesis_server.

Logs sent to the vendor

A Genesis container can send its server log to the vendor, so support can see problems on your install without asking you for a log bundle. It is off by default; you turn it on to share logs with the vendor’s support (see below).
  • What is sent: everything the server writes to logs/app.log at INFO and above (INFO, WARNING, ERROR, CRITICAL), each with the traceback lines that follow it. DEBUG entries stay in the local file. Before anything leaves the container, secrets (keys, tokens, passwords, credentials in URLs) and email addresses are replaced with [REDACTED]. Other personal details a log line names are sent as written: INFO lines include, for example, the full name of each user who signs in and their identity provider’s account id. The log also holds the warnings and errors of the libraries Genesis uses. When the server crashes or its event loop stalls, Python writes the traceback to logs/faulthandler.log, which the container copies to its own output as it is written; Genesis adds it to app.log when the server recovers, or when it next starts with the same logs directory. A Docker container that restarts keeps that directory, and so does a pod of the Genesis Helm chart, which keeps /app/logs on the instance’s data volume (from chart 0.3.128). Under an older chart, or any Kubernetes setup without /app/logs on a volume, a restarted container starts with an empty one, so a crash’s traceback is in kubectl logs --previous and not in app.log. No other log file is sent.
  • Backlogs and long entries: an entry longer than 8192 characters goes in several pieces. If the install cannot reach the vendor for a while, everything written meanwhile, including the rotated copies of app.log (app.log.1, …), is sent once it can, in as many requests as it takes, oldest first. Only what log rotation has already deleted is lost, so a very long outage on a busy install can still lose its oldest entries.
  • Where and how often: sends only new entries to the vendor’s control-plane Receiver. support.log_shipping.receiver_base_url sets the receiver URL and defaults to https://enhancements.genesiscomputing.ai; it must be an http(s) URL or sending stops. support.log_shipping.interval_seconds sets the send interval in seconds and defaults to 300. A value of 0 or less turns sending off; the interval is read when the server starts. The first check is after one interval. Each send is signed with a key the install creates on first use and keeps as an encrypted secret. On its first check, the install registers that key together with its name (<client>.<instance>, see above), its install id, its Genesis version and where it runs (below).
  • Where it runs: with its registration, the install also says who runs it and where, so the vendor can tell whose install it is even when it has no name. It reads these facts again every 15 minutes, registers again when they change, and writes each change to app.log:
    • the OS user, machine name and OS of the host, and a SHA-256 of the host’s hardware id (genesis_server passes these into the container at each launch, and the local Kubernetes deploy-local.sh into the pod at each deploy);
    • how it was started: Docker or Helm, the processor architecture and kernel release, whether it runs under Docker Desktop or WSL, and under Kubernetes its namespace, pod and node;
    • on AWS, the account, region and instance id;
    • a SHA-256 of the LiteLLM proxy key it uses, never the key;
    • for the email in the host’s git config and for each of the 20 users who signed in most recently, the domain and a SHA-256 of the address, never the address;
    • the type and host or account of up to 20 data connections, never a user name or credential.
    Turning log shipping off stops these too. A Docker install set up before this change sends the host’s values only after you run the installer again, which rewrites genesis_server; a local Kubernetes install sends them after you run deploy-local.sh again. Until then it sends what the container itself sees.
  • Where it never runs: only the Genesis image run under Docker sends; the image says so itself (GENESIS_DISTRIBUTION=docker). Self-managed Helm installs send the same way (see the Helm install guides). Snowflake (SPCS), other Kubernetes deployments, Genesis Desktop and control-plane-managed deployments do not.
Log shipping is off by default (support.log_shipping.enabled: false), on every install. To share logs with Genesis support, set support.log_shipping.enabled to true under Config > Advanced Settings, or add this line to ~/.genesis/config.env and restart genesis_server:
To turn it off again, undo it the way you turned it on. If you used Config > Advanced Settings, set support.log_shipping.enabled to false there; that takes effect at the next send, without a restart. If you used config.env, change the line to false and restart genesis_server: the environment value wins over Advanced Settings. Removing the line instead falls back to whatever Advanced Settings holds, so check there that it reads false. What the server logs while sharing is off is never sent, even after it is turned back on. A server started with sharing off counts as off from the end of its startup. To run with no data sent to the vendor at all, see Restricted networks: sending no data to the vendor.

Configuring the LLM provider

The LLM provider does not belong in config.env. Start the container first, then configure the provider against the running server — from Config -> AI Providers in the UI, or through the config API. The configuration is stored in APP_CONFIG and survives every restart afterwards. Keep credentials in a request-body file: process arguments are visible to every process on the host and land in shell history.
Read each response before running the next call: these routes also answer 200 with success: false (for example when the provider already exists — repeat that call as a PUT). For the card / llm-type naming table and the other providers, see the reference procedure. For the card / llm-type naming table, the other providers, and the embedding identity rules, see Configuring a provider through the config API and AI model setup. LITELLM_EMBEDDING_MODEL is no longer read as an input.
Some schema fields carry a default_env_var binding that seeds them from the container environment while nothing is stored, so an image can come up pre-seeded. That is bootstrap only — it is not the way to configure a provider, and anything saved through the UI or the config API outranks it.

Updates

Options

Examples


Volume mounts

genesis_server automatically mounts the following directories:
On container startup Genesis prepares the mounted Git workspace at GIT_PATH (default /app/bot_git). It ensures repos/, worktrees/, and .genesis_runtime/ exist, starts the shared group-write repair in the background using GENESIS_BOT_GIT_SHARED_GROUP (default cortex_sandbox) so slow recursive permission fixes do not block container startup, and by default adds * to system Git safe.directory unless GENESIS_TRUST_ALL_GIT_DIRS=false.The mounted Git workspace also stores named local Python environments and must persist to retain them. See Managed local environments for their location and startup migration.Before any service starts, Genesis also attempts to remove other-user access from the mounted data directories — /app/bot_storage (or STORAGE_PATH), the directory holding SQLITE_DB_PATH, /app/.genesis and the log directory — so the unprivileged user that runs agent code cannot read the database or the credentials in it. Only each directory itself is changed, never what is inside it, so this is fast on large volumes. Where a secret sits in a directory agent code must still reach (genesis.db or a log file directly in /app, or credential files such as g-workspace-sa-credentials.json in the working directory), that file itself loses other-user access instead. A mount that refuses permission changes is logged as a warning (Could not lock ...) and left as it was, so check the startup log on such storage. Genesis runs as root and is unaffected; to inspect these directories, open a root shell through the container runtime (for example docker exec -u 0 -it <container> bash).
Current Genesis container images include ripgrep (rg) out of the box. If you open a shell inside the container for troubleshooting, you can search mounted files under paths such as /app/bot_storage and /app/bot_git without installing extra packages — apt and dpkg are not available at runtime (see Container image security hardening). The same images also bundle the in-repo genesis_sdk package under /app/genesis_sdk (for execute_python_code local execution — not installable from PyPI), the llm_wiki package under /app/llm_wiki, the estatechar package under /app/estatechar (source-contract characterization REST and store glue), and the genesis_spcs_auth package under /app/genesis_spcs_auth (Snowflake SPCS ingress OAuth used by remote Genesis Apps and the Teams SPCS relay), so the SDK, wiki APIs, estatechar workflows, SPCS authentication helpers, and tools shipped with Genesis are available without rebuilding the image.
The Estate (Prover) top-level nav is exposed by default and needs no container environment variable. The web client reads show_estate from GET /api/config/frontend, which is true unless the deployment turned Prover off one of the two supported ways: setting features.show_estate to false through the config API (Advanced Settings, or PUT /api/config/advanced/value), which stays editable in the UI; or setting GENESIS__FEATURES__SHOW_ESTATE=false on the container environment, which outranks that write and locks the Advanced Settings toggle. Either way the estate routes keep answering — only navigation is hidden. The former Prover-specific GENESIS_SHOW_ESTATE opt-in is retired and no longer read. Work (Requests, the Queue and Proofs) is always on and needs no container environment variable; who sees it follows each person’s role. The former GENESIS_SHOW_WORK switch is retired and no longer read, so a container that still sets it to false keeps Work.