Install › Run the installer

Run the installer

For whoever runs the install5 min read

Put the code on your server, fill in one settings file and run one installer. Then check it, sign in and add your team.

On this page
  1. The short version
  2. 1. Put the code on the server and fill in the settings
  3. 2. Hand over the token and install
  4. 3. Connect a model and verify
  5. 4. First sign-in
  6. 5. Adding people
  7. Trying it without a domain

The short version

  • Timing: the installer takes 10 to 20 minutes, mostly building the app. From Cloudflare clicks to first sign-in is about 30 to 45 minutes.
  • Two files: client.conf holds plain settings only. The Cloudflare token goes in a separate hand-over file that the installer deletes.
  • Check it: verify.sh runs every check, including a test card end to end. Every line should say PASS.
  • Add people in two places: the Cloudflare allowed list, then Settings → Workspaces → Users.
Easiest install

You don't have to type any of this. Let Claude Code run the install: paste one prompt into Claude Code on your laptop and it follows the official install guide, stopping only for the clicks that need you.

Prefer to do it yourself? The commands below assume you log in as ubuntu with sudo. As root, the sudos are harmless.

1. Put the code on the server and fill in the settings

sudo apt-get update -qq && sudo apt-get install -y -qq git
sudo git clone https://github.com/Axia-Growth/OperationKit.git /opt/operationkit-src
cd /opt/operationkit-src
sudo cp install/client.conf.example client.conf
sudo nano client.conf

Keep the code in /opt/operationkit-src: updates are pulled into the same folder. Every setting is explained in the file itself. The ones you will change:

SettingWhat to putExample
CLIENT_NAMEYour company name, shown in the appFernleaf Garden Supply
CLIENT_SLUGA short id: lowercase letters, digits and dashesfernleaf
DOMAIN / ZONEThe full web address, and the domain it sits underops.fernleaf.example / fernleaf.example
ADMIN_USERNAME / ADMIN_EMAILThe first admin. Empty email means the first address in the allowed list.admin
ACCESS_ALLOWED_EMAILSWho may open the site, comma-separatedowner@fernleaf.example
ACCESS_ALLOWED_EMAIL_DOMAINOptional: let in everyone at one email domainfernleaf.example
ACCESS_LOGIN_METHODotp (emailed code), google or microsoftotp
CLAUDE_AUTHlogin for a Claude subscription, api-key for an Anthropic API keylogin
TIMEZONEYour time zone, for schedules and the nightly backupAmerica/New_York

No passwords, keys or tokens ever go in client.conf. Everything else (branding, backups, the install folder) can stay at its default for now.

2. Hand over the token and install

Type the Cloudflare token, hidden, into a hand-over file. Then do a dry run, which changes nothing and should end with Done, and the real install:

read -rs -p 'Cloudflare API token: ' T; echo
( umask 077; printf 'CLOUDFLARE_API_TOKEN=%s\n' "$T" > ~/ok-handover.env ); unset T

sudo ./install.sh --config client.conf --dry-run
sudo ./install.sh --config client.conf --secrets-file ~/ok-handover.env

Using an Anthropic API key instead of a subscription? Add a line ANTHROPIC_API_KEY=... to the same file the same way. Optional keys for other providers (OPENAI_API_KEY, GEMINI_API_KEY) go there too.

The install takes 10 to 20 minutes, mostly the build. It:

  • prepares the server: Docker, a firewall that allows SSH only, automatic Ubuntu security updates and fail2ban. SSH switches to key-only logins, but only after it checks that a key is installed;
  • generates every password and key on the server into /opt/operationkit/secrets/ (root only), printing their names, never their values, and deletes the hand-over file;
  • builds the app image and the job sandbox image;
  • sets up Cloudflare (what it builds);
  • starts the app and creates your workspace and the first admin;
  • switches on file import for the knowledge base;
  • schedules the nightly backup and, if you run it in a terminal, offers to set up off-site backups to Backblaze B2;
  • runs the checks, and prints how long each step took.

Every step is safe to run again. If something fails, fix the cause and re-run the same command. The full build log is in /opt/operationkit/logs/.

3. Connect a model and verify

Connect your Claude subscription next, either in the app (Settings → Models → Add Claude seat) or with install/claude-login.sh in your own terminal. Skip this if you handed over an API key. Details: Connect your model.

Then run the full check:

sudo bash /opt/operationkit-src/install/verify.sh --config /opt/operationkit-src/client.conf

Every line should say PASS. It checks that the app and the tunnel are running, the firewall is on with no web port open, a stranger gets the Cloudflare sign-in, AI apps can reach their routes with a key, admin routes stay shut, one login works, and a throw-away test card runs end to end inside a sandbox. A FAIL line says what to look at.

4. First sign-in

Open https://<your DOMAIN>, enter the admin email and type the code Cloudflare sends (or sign in with Google or Microsoft). You land in the app as the admin. There is no second password page.

The installer also made a one-time setup password for the admin. With one login it is break-glass only, and it stops working after 72 hours whether or not anyone used it. To read it, in your own terminal: sudo cat /opt/operationkit/secrets/first-admin-setup-password. To issue a new one: sudo bash /opt/operationkit-src/install/admin-password.sh --config /opt/operationkit-src/client.conf.

5. Adding people

Nobody is ever given an account automatically. Each person needs two things:

  1. Let them through Cloudflare

    Add their email to ACCESS_ALLOWED_EMAILS in client.conf and re-run sudo ./install.sh --config client.conf. If you set ACCESS_ALLOWED_EMAIL_DOMAIN, everyone at that domain is already through.

  2. Create their user

    In the app, open Settings → Workspaces → Users. Under Create user, enter a username, a temporary password (Generate makes one), their Sign-in email and a role, then press Create. For someone who already has a user, fill in Sign-in email on their row.

The sign-in email must match the address Cloudflare verifies, exactly, and on only one user. An allowed email with no matching user gets a "No account for this email" page.

Trying it without a domain

For a first look or a demo, skip Cloudflare. Leave DOMAIN, ZONE and the ACCESS_* settings empty and install with --skip-cloudflare (no token needed). The app then listens on the server's 127.0.0.1:3002 only. From your laptop, open a tunnel and browse to http://localhost:3002:

ssh -N -L 3002:127.0.0.1:3002 ubuntu@<IP address>

Sign in with the admin username and the setup password. There is no one login without Cloudflare, so you will be asked to choose a new password. This is fine for a demo, not for a team. To move to a real address later, fill in the settings, hand over the token and re-run the installer without --skip-cloudflare. Your data is kept.

Installing for a client?

Follow the same steps on the client's server, with the client's Cloudflare and model accounts. Put the client's people in the allowed list and make the client's own admin the first admin.

Last checked against Operation Kit main (f504a64), 11 Nov 2026Suggest an edit