The goal: what it looks like at the end
The Software Factory is a local web application. After setup you open it in your browser at http://localhost:8080, sign in and create your first project. A "run" then puts your AI agent to work in a structured way — with plan, implementation, review and quality gate.
First, understand: subscription vs. API key
At Anthropic these are two separate billing paths — the factory supports both:
Claude subscription (login)
Your Max/Pro subscription via Claude Code's OAuth login. No second account, no separate cost center — the runs count against your subscription's usage limits.
API key
ANTHROPIC_API_KEY from the Anthropic console, billed per token, costs on top of the subscription. You can switch at any time.
In subscription mode the factory deliberately removes any API key from the Claude process's environment — so that Claude Code really uses your subscription and doesn't quietly switch to API billing.
TEAM_API_POOL with an API key (directly or through a gateway) is the intended path.
Prerequisites
Before you start, you need the following in one environment (WSL or Windows — more on that in a moment):
- The single-seat starter package (on request), ideally after one pass through the quickstart.
- JDK 25 (Java 25) — the factory is a Java application.
- Docker for the database — the
compose.ymlin the starter package runs PostgreSQL in a container. - Claude Code (CLI) on the same machine, as the same user (check with
claude --version). - An active Claude Max or Pro subscription (or, alternatively, an API key).
- A license — the starter package requires one for real AI agents (runs with the mock work without a license). You request the free Community license inside the factory after the first start (email address only); alternatively you import a license file (
.license). See below.
Choose your path
The factory calls the claude CLI as a subprocess and needs its credentials and PATH. That's why the factory and Claude Code must live in the same operating-system world. Decide on one path:
Path A — everything in WSL2
Ubuntu shell under Windows. Claude Code via the official install script, credentials in ~/.claude, factory via start.sh. The smoothest path.
Path B — native on Windows
Everything in PowerShell, credentials under %USERPROFILE%\.claude, factory via start.ps1.
start.sh and start.ps1 start the factory itself natively.
Path A — everything in WSL (recommended)
All steps run in a WSL2 Ubuntu shell as your user, in the unpacked starter package.
Install the requirements and Claude Code
install-softwarefabrik.shchecks Java 25 (on Debian/Ubuntu from the Adoptium package source), git, git-lfs, Docker and the Claude Code CLI and installs what is missing after asking. Then sign in to Claude Code once (opens the browser) — on the API-key path you skip the sign-in../install-softwarefabrik.sh claude --version claude /login
Create
.envFrom the template, with your own admin password. If you set
SOFTWAREFABRIK_EXECUTION_ADAPTER=mockfor the quickstart, set it back toclaude. You choose the sign-in path (subscription or API key) in the initial setup in a moment.cp .env.example .env # SOFTWAREFABRIK_ADMIN_PASSWORD=your-admin-password # SOFTWAREFABRIK_EXECUTION_ADAPTER=claude
Start and open the factory
The script starts the database in a container and the factory natively. Then open
http://localhost:8080and sign in asadmin../start.sh
Path B — everything native on Windows
All steps run in PowerShell as your Windows user, in the unpacked starter package.
Install the requirements and Claude Code
install-voraussetzungen.ps1checks Java 25, git, git-lfs, Docker and Claude Code and installs what is missing after asking (via winget or the official Claude install script). On Windows the command isclaude.exe(official install script) orclaude.cmd(npm). Sign in once — on the API-key path you skip this.powershell -ExecutionPolicy Bypass -File .\install-voraussetzungen.ps1 claude --version claude /login
Create
.envAs in path A: copy the template, set the admin password, adapter
claude.Copy-Item .env.example .env
Start and open the factory
Docker Desktop must be running (for the database). Then open
http://localhost:8080and sign in asadmin..\start.ps1
USERPROFILE, APPDATA, …) on to Claude and by default uses claude.cmd if it is on the PATH, otherwise claude (i.e. claude.exe). If your installation lives elsewhere, set SOFTWAREFABRIK_CLAUDECODE_COMMAND to the full path (e.g. of a claude.exe).
A. With a subscription: connect your Claude subscription
For personal use with your Claude Max or Pro subscription — without a separate API key. These steps apply to both paths — only the credentials path differs.
-
Sign in once
If not already done above. The browser login goes against your subscription; the credentials land under
~/.claude(WSL) or%USERPROFILE%\.claude(Windows) and are kept current by Claude Code itself.claude /login
-
First-time setup: Claude Code and „Ich habe ein Abo“
After the first login the dashboard shows the „Willkommen“ (welcome) box with „Ersteinrichtung starten“ (start first-time setup). In the KI-Zugang (AI access) step pick Claude Code under „KI-Agent“ and „Ich habe ein Abo …“ (I have a subscription) under „Anmeldung“ (sign-in), then „Speichern und weiter“ (save and continue). Claude Code is now the default agent in subscription mode. The system check in the next step shows whether anything is still missing.
Alternatively without the UI: set
SOFTWAREFABRIK_CLAUDECODE_AUTH_MODE=subscriptionin the.envbefore starting. -
No API key in the environment
A set
ANTHROPIC_API_KEYwould take precedence over the subscription in Claude Code. In subscription mode the factory strips it from the subprocess anyway — still, keep it out of the environment. -
(Optional) Different credentials directory
Only needed if your credentials aren't at the default location. Since v0.31 the factory takes only
.credentials.jsonfrom there: MCP servers, plugins and hooks from your own Claude configuration do not apply to agent runs — every run gets an empty HOME.SOFTWAREFABRIK_CLAUDECODE_CONFIG_DIR=/path/to/.claude
ANTHROPIC_API_KEY in the factory's environment. Optional keys (e.g. NVD for CVE scans) go here.A. With a subscription: OpenAI Codex (ChatGPT subscription)
The same principle exists for OpenAI Codex: instead of an OPENAI_API_KEY the factory uses your signed-in ChatGPT Plus/Pro subscription ("Sign in with ChatGPT"). The steps mirror the Claude subscription 1:1.
-
Sign in once
Browser login against your ChatGPT subscription. The credentials land under
~/.codex/auth.json(WSL) or%USERPROFILE%\.codex\auth.json(Windows).codex login
-
Set adapter + auth mode
Via
.envor in the Settings. A setOPENAI_API_KEYwould silently redirect billing — in subscription mode the factory actively strips it.SOFTWAREFABRIK_EXECUTION_ADAPTER=codex SOFTWAREFABRIK_CODEX_AUTH_MODE=subscription
-
(Optional) Different credentials directory
Only needed if not at the default location. The factory takes only
auth.jsonfrom there; yourconfig.toml(including MCP servers configured in it) does not apply to agent runs. The auth mode is also switchable in the Settings UI and takes effect without a restart (max. 5 min cache).SOFTWAREFABRIK_CODEX_CONFIG_DIR=/path/to/.codex
A. With a subscription: billing — honestly
In subscription mode the factory calls Claude Code headless (claude -p). This usage counts against your subscription's usage limits — no separate API bill is created. As of 2026-10-18 according to Anthropic support (article 15036540):
- Update of 2026-06-15: the previously announced change to programmatic subscription use is paused;
claude -p, the Agent SDK and third-party apps still draw from your subscription limits. - Update of 2026-10-07: Max and Team plans additionally include monthly API credits (for the Agent SDK,
claude -p, the Claude API and Managed Agents). According to Anthropic these credits do not cover Claude Code itself and do not change the usage limits.
- Personal use: convenient, no API billing setup; the advertised limits assume ordinary, individual usage.
- Sustained load or team: an API key is the intended path — you keep both options via the switch.
The costs the factory shows per run are tokens × API price table. In subscription mode these EUR values are an estimate at API rates and are not billed.
A. With a subscription: only for you — multiple users need API keys
As soon as you no longer use the factory alone, section B applies. As soon as several people work with one instance, the factory runs in operating mode TEAM_API_POOL with an API key (directly or through a gateway). A variant in which several users each deposit their own Claude subscription on a shared server is deliberately not offered: Anthropic does not permit third-party applications to collect, store or intermediate Claude.ai credentials (Legal and Compliance).
B. With an API key: set up the Anthropic key
For team operation, sustained load or when you don't use a subscription: an API key is billed by usage. You create the key in the Anthropic console; set a monthly spending limit there — it is the only hard cost limit outside the factory. Easiest via the initial setup: on a fresh instance the dashboard shows you as administrator „Ersteinrichtung starten“ (start initial setup); later you reach it via Einrichtung → KI-Zugang (setup → AI access). Under „KI-Agent“ pick Claude Code (next to it you see whether the CLI is installed and which version), under „Anmeldung“ (sign-in) choose „Ich nutze einen API-Schlüssel …“ (I use an API key), enter the key and click „Speichern und weiter“ (save and continue). The factory stores the key encrypted, checks it right away and makes Claude Code the default agent — that also covers the next section (default agent). The next setup step shows what the system check still misses (e.g. JDK or Maven).
For team operation, sustained load or when you don't use a subscription: an API key is billed by usage. You create the key in the Anthropic console; set a monthly spending limit there — it is the only hard cost limit outside the factory. The Claude Code CLI reads the key from the environment of the factory process; if it is missing there, the factory injects the stored key in api-key mode. Without the initial setup there are two places:
Variant A: as an environment variable
For team operation, sustained load or when you don't use a subscription: an API key is billed by usage. You create the key in the Anthropic console; set a monthly spending limit there — it is the only hard cost limit outside the factory. Before starting the factory, set ANTHROPIC_API_KEY=sk-ant-... (e.g. in the .env next to start.sh) and keep the auth mode at the default api-key (SOFTWAREFABRIK_CLAUDECODE_AUTH_MODE=api-key). Then restart the factory.
Variant B: through the UI
- Open Einrichtung → Integrationen (setup → integrations) (or navigate to /integrations).
- On the Anthropic card paste the key (starts with
sk-ant-...) and click Save and test.
For team operation, sustained load or when you don't use a subscription: an API key is billed by usage. You create the key in the Anthropic console; set a monthly spending limit there — it is the only hard cost limit outside the factory. The key is AES-GCM-encrypted under the master key and stored in the database. The factory uses it for the key test, the AI merge of artifact evolution and (from 0.41.1) for Claude Code runs and reviews in api-key mode. If ANTHROPIC_API_KEY is also set in the environment, the environment takes precedence.
audit_event — recording who (user subject) and when (timestamp). The env variant is anonymous.
B. With an API key: set the default adapter to claude
If you used the initial setup in the previous section, Claude Code is already the default. Otherwise set the global default so you don't have to pick the adapter on every run:
- Open Einrichtung → Einstellungen (setup → settings) (or navigate to /einstellungen) and go to the Adapter section.
- Set Default execution adapter (
execution.adapter.default) toclaude. - You do not set a global default model (the field no longer exists since v0.33.0): the model comes from the agent's preference in the team; if there is none, Claude Code falls back to the role default — plan runs
claude-opus-5-5, build runsclaude-sonnet-5-5. - Save.
The change applies without a restart: saving clears this instance's cache entry; after at most 5 minutes (TTL cache) the new value applies everywhere.
audit_event (SETTING_UPDATED) with user subject and timestamp.
B. With an API key: operating mode for teams
Before switching to real adapters, decide the instance's operating mode. It controls whether the subscription login (personal Claude/Codex plan) is allowed or whether only API keys are used. Set it as the betrieb.modus setting under /einstellungen (or via env SOFTWAREFABRIK_BETRIEB_MODUS):
EINZELPLATZ_ABO(default) — uses the Claude/Codex subscription login (personal Max/Pro plan). Convenient for a single seat, no API billing setup needed.TEAM_API_POOL— disables the subscription login and enforces API key mode (team/pool billing). The factory does not check whether a key is actually present: for Claude Code,ANTHROPIC_API_KEYin the environment of the factory process or a key stored on the integrations page is enough (from 0.41.1; the environment takes precedence). Required as soon as more than one person uses the instance: a Claude subscription is intended for personal use by the subscription holder.
For both paths: container sandbox (optional)
If you have Docker on the host and want to encapsulate build and scans per run in an ephemeral container:
- Open the Leitplanken (guardrails) page (
/leitplanken; Einrichtung → Sicherheit) and choose the level Vorsichtig (careful) — it sets the sandbox tocontainer, but also makes the quality gate blocking and strict. To change only the sandbox, switch to expert view and set the individual value sandbox tocontainer. - Optional: custom build image per project under “Technische Einstellungen” (technical settings) → “Build-Container” → “Image” (empty = automatically matching the project).
The agent CLI itself still runs as a host process; if needed, block the agent's network access at host/network level.
If Docker is missing from the PATH, the platform falls back to the local sandbox with a log warning.
For both paths: license
The starter package contains the distribution build of the factory. It requires a license: without a license (or once grace and emergency grace have expired) no new run with a real AI agent starts; runs with the mock remain possible and the rest of the UI stays usable.
- Request the Community license (default path): Einrichtung → Lizenz → „Community-Lizenz anfordern“ (setup → licence → request community licence), enter an email address — no account. The factory fetches the license from the license server and binds it to this machine (needs internet access to
license.softwarefabrik.io). - Or import a license file: a
.licensefile from the license admin (Professional/Enterprise) is imported on the same page under „Lizenz importieren“ → Datei importieren (import file). On import the factory binds it to this machine; a license file covers one device by default, WSL and Windows count as two devices. It can be activated within 14 days of issuance; after that, request a new one. - Offline verifiable: licenses are Ed25519-signed JWTs and are verified locally.
- When the license has expired, only new runs are blocked — the rest of the UI stays usable.
Done — how to verify
Get a license
Einrichtung → Lizenz → „Community-Lizenz anfordern“ (or import a license file). Without a license no new run with a real AI agent starts; runs with the mock remain possible. If you changed values in the
.env, restart the factory first.Quick start → „Bauen“
„Neues Projekt“ (new project) opens the quick start: enter name, kind and description, then „Bauen“ (build) — the factory creates the project and starts the first run with the agent chosen in the first-time setup. For further runs there is the „Neuer Lauf“ (new run) form with the same buttons „Bauen“ and, in the „Experte“ view, „Nur anlegen“ (create only); the „KI-Werkzeug (Adapter)“ field appears only in „Experte“.
Check the result
The run completes with your agent — in subscription mode it counts against your subscription’s usage limits, in API-key mode it is billed by usage. Once the yellow “Mock-Adapter aktiv” notice is gone, everything runs for real.