Getting Started

Install & Deploy

The licensed Gostly product ships as a Docker Compose stack backed by container images you pull from a registry — there is no host binary to install. This page covers system sizing, the .env you fill in, the ports each service exposes, the hosts a connected install must reach, the Lite and Full installation choices, operator health findings, and the first record/replay check.

What you're installing

The licensed product is delivered as the public Gostly compose repository (Compose files and a .template.env) plus a set of pre-built images. You clone the repository and run its ./setup.sh, which fills in an .env with your license key and the workspace ID it reads from the key, signs in to the image registry with a short-lived token it gets with the key, pulls the images, and runs docker compose up -d. The repository README lists the commands; the Quick Start walks through a first recording. Lite includes the proxy, local dashboard/control API, database, and one-shot database setup, and is the default. Full adds AI services. The repository's Compose files define the exact services and volumes:

ghost-proxy8080 · 8443

The Rust proxy. The only service your application talks to. Runs the match cascade and the four operating modes. Plain HTTP on 8080; the TLS-MITM listener binds on 8443 when enabled.

ghost-web3000 · 8000

Control plane API (8000) plus the operator dashboard (3000), one container. Owns services, mocks, transitions, drift, and the SSO/RBAC auth layer.

ghost-migrateone-shot

Applies database setup and migrations before the control plane starts. A successful exit is expected; retain this dependency in your Compose file.

ghost-postgresinternal

PostgreSQL 16. The persistent store for the mock library, services, and audit log. Not published to the host.

ghost-inferenceinternal

The AI inference engine. Runs RAG retrieval and — when generation is enabled — serves cached LoRA-adapter responses. This is the memory-hungry container.

ghost-llamacppisolated, Full stack

Local model service, included when Full starts. Its dedicated Docker network is internal; it has no published host port.

Lite includes ghost-web and its local dashboard and omits the AI containers. Lite is an installation choice within an active license. Keep the generated stack intact for capture, service routing, and library builds.

Compose + registry images, not a host CLI

The licensed product is distributed exclusively as Docker Compose plus registry images. There is no gostly command to install on your host. If you came here looking for a host CLI with brew / package-manager install, that's the open-source proxy — a separate product with its own binary and its own command line. This page is about the licensed self-hosted stack.

Prerequisites

  • → Docker with Compose v2.22 or later (Docker Desktop, or Docker Engine + the Compose plugin on Linux). The Full stack needs Compose v2.26 or later and Docker Engine 26 or later. ./setup.sh checks these versions.
  • → A Gostly license key — start a free Pro trial. Verify your email before issuing a key. Your account starts with 14 days of Pro without a credit card; a subscription is required to continue after the trial.
  • → A registry login token, valid 12 hours, to pull the images: ./setup.sh gets it from gostly.ai with your license key; by hand, copy the login command from your dashboard under Installing by hand
  • → Any HTTP service you want to mock — local, staging, or third-party. Production access is not required.

Network requirements

A connected install needs outbound HTTPS (port 443) to the hosts below. If your network filters outbound traffic by hostname, allow them before your first pull.

Image registries (from the Docker host, during login and pull)

HostUsed for
242201285974.dkr.ecr.us-east-1.amazonaws.comThe Gostly image registry: login and image manifests.
prod-us-east-1-starport-layer-bucket.s3.us-east-1.amazonaws.comGostly image layers, served from AWS's ECR layer bucket for us-east-1; AWS's ECR documentation lists the S3 hosts to allow.
registry-1.docker.ioauth.docker.ioThe bundled PostgreSQL image and, while the demo profile is on, the demo upstream image (mccutchen/go-httpbin), pulled from Docker Hub.
production.cloudfront.docker.comDocker Hub layer downloads. Docker can change this download host; check Docker's own allowlist guidance.

Gostly platform (from ghost-proxy and ghost-web, at startup and while running)

Default connected platform contacts; configured application and provider connections are separate.
HostPathUsed for
gostly.ai/v1/licenseOnline key validation, entitlement and seat checks. These contacts are skipped when both services recognize an Enterprise signed license file. Online validation records the request's client IP and supplied machine ID; API seat checks use a separate instance ID. Usage opt-out does not disable these contacts.
gostly.ai/v1/.well-known/jwks.jsonThe signing keys used to verify online license responses; file-based licensing uses a key built into the images.
gostly.ai/v1/telemetry/ingestAgent operational reports and separate API dashboard usage counters, unless you set GOSTLY_TELEMETRY=off. Dashboard counters send daily by default, with a best-effort shutdown flush; local counting remains enabled.
gostly.ai/v1/telemetry/aggregateEligible agent usage scopes fetch a recent distinct-installation count using a license hash in the query. This lookup is part of the usage shipper and stops with its opt-out; it is not a count of verified people.
gostly.ai/v1/install/receiptsInstall-outcome receipts from ghost-proxy: whether the stack became ready and any license denial, with the machine ID, build and agent version. Not sent if you set GOSTLY_TELEMETRY=off or the agent recognizes a signed license file.
r2.gostly.ai/jwks.jsonA signing-key mirror that ghost-proxy tries only when online key validation needs signing keys and the gostly.ai request fails. File-based licensing does not use this mirror. Optional; it does not replace gostly.ai.

Your browser also uses gostly.ai for the account dashboard, where you copy your license key (and, by hand, the workspace ID and the registry login). ./setup.sh calls gostly.ai from the Docker host to check the key (/v1/license/features) and to get the registry token with it (/v1/license/registry-credentials). git clone reaches the public compose repository's host. The proxy must reach the upstream services you register, and ghost-web must reach any SSO identity provider you configure. The default AI models are included in the Full images. See Telemetry for what telemetry contains.

If a filter or proxy refuses the signing-key request (for example with HTTP 403), licensed features can stop working. Allow the signing-key host before your first pull.

Choose Lite or Full

Lite is the default. docker compose reads the repository's docker-compose.yaml (Lite) unless .env selects otherwise. Start with Lite for recording and replaying your own API traffic. It omits ghost-inference and ghost-llamacpp; choosing Lite does not change your license, trial deadline, or data limits.

Choose Full — includes AI services when you want to evaluate AI functionality. ./setup.sh asks once and writes your choice to COMPOSE_FILE in .env. To switch later, set COMPOSE_FILE=docker-compose.full.yaml in .env, check it with docker compose config --services, then run docker compose up -d. To go back to Lite, set COMPOSE_FILE=docker-compose.yaml and run docker compose up -d --remove-orphans. When the Pro trial expires, a subscription is required to continue; choosing Lite does not extend access. Expired trials cannot get a registry token until access is restored.

When switching stacks, keep the same private .env, database credentials, tenant ID, and volumes.

System sizing

Lite avoids the AI image pulls and model services. Full starts both ghost-inference and ghost-llamacpp and needs additional disk and memory. The served Full template currently sets memory ceilings of 12G for inference and 6G for the model service, with four-CPU limits by default. Check those limits in the README's Resources table, or under deploy.resources in docker-compose.full.yaml, and your Docker resource allocation before starting Full.

Choose Lite for the initial record/replay workflow.

Disabling generation within an AI service does not remove its image or container from Full. Select Lite to omit both AI services entirely. Optional AI settings in the generated .env are unused by Lite; keeping them lets you reuse the same private environment if you later choose Full.

Ports

The supplied Compose files publish the HTTP proxy, dashboard, and control API ports. Neither publishes port 8443, so TLS interception needs an override file that publishes it. Postgres and AI services remain on internal Docker networks.

PortServiceWhat it is
8080ghost-proxyPlain-HTTP proxy. Point your application here instead of its upstream URL. This is the only port your app needs.
8443ghost-proxyTLS-MITM listener, not published by the supplied Compose files. Set ENABLE_TLS_INTERCEPTION=true in .env (the Full file passes it to the proxy; on Lite, also add it to ghost-proxy in the override) and publish 8443 in docker-compose.override.yaml, as the TLS guide shows. The port is unused while interception is disabled.
3000ghost-webOperator dashboard. Watch traffic, manage services, switch modes.
8000ghost-webControl plane API. Browser calls and curl scripts hit it here (the /v1/* endpoints).

On HTTPS, fetch and trust the proxy's MITM CA once — it serves the cert at GET /ca.crt on port 8080 (which returns 503 while interception is off, so flip the knob first):

curl http://localhost:8080/ca.crt > gostly-ca.crt
# then add gostly-ca.crt to your client / OS trust store

See Proxy Setup → TLS for the per-OS trust-install steps.

.env setup

For a fresh installation, run the repository's ./setup.sh: it copies .template.env to .env (readable only by you), generates the local secrets, asks for the local administrator sign-in and your license key, and writes your workspace ID from the key. It fills the values in the README's required environment variable updates; the README's manual steps do the same by hand. Keep .env private and set your upstream. Preserve the generated database passwords and stable tenant ID; setup.sh never replaces a value that is set, except a rollout gate an older template wrote as false, which it turns on and prints. Do not copy a fresh template over an existing deployment:

./setup.sh --no-start
docker compose config --quiet
VariableWhat to set
GOSTLY_LICENSE_KEY / GOSTLY_TENANT_IDYour license key from the dashboard (shown once, when the key is created); setup.sh asks for it and writes your Workspace ID from it, the same ID Settings → Organization shows. Gates tier-specific capabilities. Same key on the proxy and the control plane.
BACKEND_URLThe upstream the proxy forwards to in LEARN mode and falls back to in PASSTHROUGH. Any reachable HTTP endpoint. Generated as the bundled demo upstream, http://gostly-demo-upstream:8080.
COMPOSE_PROFILESGenerated as demo, which starts the bundled demo upstream. It answers only under /gostly-demo/. When you set BACKEND_URL to your own service, delete this line, then run docker compose up -d and docker compose rm -sf gostly-demo-upstream.
POSTGRES_PASSWORD / GOSTLY_APP_DB_PASSWORD / GOSTLY_SERVICE_DB_PASSWORDKeep all three generated database credentials. They must be distinct. Preserve existing values during upgrades; do not replace them with a fresh template.
GOSTLY_ADMIN_EMAIL / GOSTLY_ADMIN_PASSWORDPrivate credentials for the local operator dashboard, set before its first boot; setup.sh asks for them, or generates the password and prints it once. Keep GOSTLY_AUTH_MODE=password.
GHOST_API_KEYGenerated by ./setup.sh. Send it as the X-API-Key header on API calls to port 8000; admins can also copy it from Settings in the dashboard. Keep it private and preserve it during upgrades. See the setup below.
GOSTLY_EPISODESGenerated as 1, which turns on Time Chamber episodes in ghost-proxy (snapshot, reset and virtual time; see the Time Chamber guide). Set 0 to turn them off.

Service authentication

./setup.sh sets GHOST_API_KEY in .env to a fresh random key, and the repository's Compose files already pass it to ghost-migrate and ghost-web; do not add it to the Compose file. ghost-web mirrors the key into the data volume, where ghost-proxy reads it. Use the same key in the X-API-Key header for API requests, keep password login enabled, and never put its value in a shared transcript.

While the line is set, the key is pinned and the dashboard cannot rotate it. To change it, generate a new key in the same form as the generated one:

echo "gsk_svc_$(python3 -c 'import secrets; print(secrets.token_urlsafe(32))')"

Replace the value in .env with its output, then recreate both services together and confirm their configuration synchronization succeeds without authentication errors:

docker compose up -d --force-recreate ghost-web ghost-proxy

To let the dashboard manage and rotate the key instead, delete the GHOST_API_KEY line and run the same command. If the value was still a key in the generated form (gsk_svc_ followed by 43 URL-safe characters), the current key is kept until you rotate it from Settings. For any other value, ghost-migrate stops and prints the command that replaces the key file.

For Full, these variables are referenced by the served Compose file:

INFERENCE_CPU_LIMIT=4         # choose within Docker's available CPU allocation
INFERENCE_NUM_THREADS=4       # inference BLAS threads
LLAMACPP_CPU_LIMIT=4          # local model service CPU ceiling
LLAMACPP_MEM_LIMIT=6G         # local model service memory ceiling
ENABLE_RAG=true               # inference retrieval

The inference memory ceiling is currently 12G in the Compose file itself; setting INFERENCE_MEM_LIMIT in .env does not override that literal value. These AI settings do not start AI containers in Lite. Preserve the generated GOSTLY_TENANT_ID; do not replace it while updating an existing installation. TLS interception requires explicit proxy environment and port changes described above.

Full mounts .gostly read-only at /gostly in ghost-migrate; boot ingest reads .gostly/services.yaml after migration. Set GOSTLY_DEFINITION_DIR to use another definition directory. Check the service_definition result in API health; mounting a file is not proof that it was applied.

Single-tenant per deployment

Each self-hosted stack has one workspace identity. A fresh install pins GOSTLY_TENANT_ID to its organization UUID; manual installs must keep one stable value before persisting data. Application access remains tenant-scoped. The API request pool connects as the non-owner gostly_app role, which cannot bypass Row-Level Security, and binds tenant context for the transaction. Covered API tables with tenant-isolation policies use FORCE ROW LEVEL SECURITY, so Postgres enforces those policies beneath the application filters.

Complete the schema migrations and preserve the separate credentials:DATABASE_URL for the request role, SERVICE_DATABASE_URL for gostly_service maintenance, and migration-owner credentials only in ghost-migrate. Some cross-tenant maintenance uses the separate RLS-bypass role; ordinary request handlers must not use it. For an external database, use a dedicated Gostly database and connections that preserve the tenant startup setting; transaction-mode pooling is unsupported. See the security model and database configuration.

Inference CPU and memory

Training and retrieval run in ghost-inference. To give it more CPUs, add INFERENCE_CPU_LIMIT to .env and change the INFERENCE_NUM_THREADS line that is already there:

INFERENCE_CPU_LIMIT=8
INFERENCE_NUM_THREADS=6

The numbers are examples: the first is the CPUs the container may use, the second the threads inference and training use. Keep the threads at or below the CPUs, and stay within the CPUs Docker has: docker info --format '{{.NCPU}}' prints them.

The memory limit is not read from .env: it is the value 12G in docker-compose.full.yaml. To change it, add this to docker-compose.override.yaml in the same folder (create the file if it does not exist):

services:
  ghost-inference:
    deploy:
      resources:
        limits:
          memory: 16G

List the override on the COMPOSE_FILE line in .env, after the Full file: COMPOSE_FILE=docker-compose.full.yaml:docker-compose.override.yaml. Docker itself needs at least the memory of both AI containers' limits together, plus room for the other services.

Apply either change with docker compose up -d, then check it:

docker inspect ghost-inference --format 'cpus={{.HostConfig.NanoCpus}} memory={{.HostConfig.Memory}}'

For 8 CPUs and 16G it prints cpus=8000000000 memory=17179869184. Applying the change replaces the container, so a training run in progress fails with "Training worker shut down". Start a new version afterwards.

License-key rotation without losing tenant identity

Existing raw-key deployments may store data under a tenant derived from the old key. Before rotating that key—or before adding the first key to an existing keyless deployment—capture the tenant currently resolved by ghost-web. Never replace it with a newly displayed organization UUID.

The following tenant checks run in the running API container (ghost-web). With GOSTLY_TENANT_ID or a license key set, doctor reports the tenant the API itself resolves; with neither, it reports the one tenant the users table holds, or default. Doctor's first line labels the tenant ID and its source; copy only the tenant value into .env, not the whole line. If it does not match the running deployment, stop before rotating the key. Inspect the full doctor findings separately; its first line is not a health pass.

# Run while the old key (or keyless deployment) is still active
docker compose exec -T -w /app/api ghost-web python -m admin doctor | head -n 1

# Copy only doctor's tenant field into .env:
GOSTLY_TENANT_ID=<captured-value>
# Matched Full already forwards this pin to ghost-web and ghost-migrate.

# Recreate under the old configuration, then verify injection and resolution
docker compose up -d --force-recreate ghost-web
docker compose exec -T ghost-web python3 -c \
  'import os; print(os.environ.get("GOSTLY_TENANT_ID", "<unset>"))'
docker compose exec -T -w /app/api ghost-web python -m admin doctor | head -n 1

# Only after the injected value and doctor's tenant field both match the captured tenant:
# change/add the key, then recreate both services
docker compose up -d --force-recreate ghost-web ghost-proxy

With an older or custom Compose file, put the GOSTLY_TENANT_ID: ${GOSTLY_TENANT_ID:-} mapping in the shared environment used by both ghost-web and ghost-migrate. Recreating only the web container leaves the proxy using the revoked old key. Preserve all existing database passwords and the exact tenant pin during every upgrade.

On secrets and the data directory

Keep .env out of version control. The shared gostly-data volume holds recorded traffic, the mock library, and license_cache.json (your license JWT) — review any copy before committing it. The Quick Start has safe .gitignore defaults. Recorded credential headers use the 16-header floor by default. Active-session replay can keep session headers in RAM; MOCK_PERSIST_VERBATIM=true explicitly retains them in recorded disk replay files. Captured local bodies and restored snapshot replay files remain sensitive data.

Recorded traffic and snapshot Postgres rows pass through the broader scrub pipeline before they are marked as scrubbed. Imported and seeded mock rows receive structural credential redaction and a sensitive response-header floor before their stored rows, revisions and serving files are written. That insert step does not perform a general personal-data scrub or set the scrubbed mark. Default mock-library exports select marked rows; explicitly including unmarked rows has a different boundary. Review source files and data-volume copies for values outside the detection rules before sharing. See the security model.

Enterprise signed license file

Enterprise installations can use a signed license file with standard images that support it. This is separate from the no-Gostly-egress build. An organization owner or admin with a verified email and an active Enterprise entitlement can download offline-license.json from account Settings → License keys → Download license file. Pro and Team continue online key validation. For new files, expiry is the earlier of the paid-period end and 365 days after issuance. Without a paid period, a new file expires 90 days after issuance. Existing signed files keep their signed expiry.

Keep GOSTLY_LICENSE_KEY in .env: when GOSTLY_TENANT_ID is unset, the API still derives tenant identity from that key even though the file replaces it for licensing. To remove the key, first preserve and verify the existing tenant with the tenant-pinning procedure. Do not replace an existing tenant with a newly displayed organization ID.

First installation. From your installation's Compose directory, copy the file into the data volume shared by ghost-web and ghost-proxy, then restart both services:

docker compose cp offline-license.json ghost-web:/data/offline-license.json
docker compose restart ghost-proxy ghost-web

To renew, replace the file well before its current signed expiry. The API notices the changed file on its next request. At the old expiry, the proxy locks traffic before rereading the file, then retries every five seconds over a nominal 30-second retry window. A valid file with a later expiry that is still in the future lets it reopen without restarting; uninterrupted traffic is not guaranteed. If renewal is not adopted during that window, install a valid renewed file and restart ghost-proxy. First installation also requires a proxy restart. Removing the file returns the proxy to key-based licensing at its next restart.

While both services recognize the file, licensing is verified locally without hosted validation, signing-key, seat or AI-proof requests. Usage telemetry remains separately controlled by GOSTLY_TELEMETRY; set GOSTLY_TELEMETRY=off to disable it. Initial setup, account downloads and registry pulls still have network requirements, as do configured upstreams, identity providers and integrations. Installing the file does not make the whole stack network-isolated.

At the signed deadline, customer traffic and capture lock. Authorized admins, owners and the system service key retain limited data-out access: the scrubbed mock export, audit feed and export, and per-service behavior documents. This does not open every export or permit unscrubbed mock export. A recognized file that fails verification locks access without falling back to the online key; that invalid-file state does not open the expiry data-out exception.

Pulling the images

The licensed images live in a private registry. ./setup.sh signs in for you with your license key whenever an image is missing; run it again to refresh the login. By hand: in your dashboard, open Installing by hand and choose Show registry login, then Copy registry login. The token is valid for 12 hours; refresh it any time.

# Use the registry host and temporary token from your account dashboard.
# Read the token from a private file, then remove that file when finished.
docker login -u AWS --password-stdin <your-registry-host> < registry-token.txt

# Then pull and start the stack
docker compose pull
docker compose up -d

The Compose files come from the public compose repository, not from the dashboard. Lite includes ghost-proxy, ghost-web,ghost-postgres, and ghost-migrate. Full adds AI services. Both require an active entitlement.

Gostly data lives in the Compose volume gostly-data, which Docker creates writable by the containers' user; there is no host directory to prepare. It does not hold the database: mocks, users and settings live in Postgres, in its own volume. Before every upgrade, take a backup with the README's Backup steps. They keep four things together in backups/: the database dump, the secret-store key, your .env and the release commit. The recordings, mock library and adapters on gostly-data are not part of those steps. To keep them too, stop the stack with docker compose stop, copy the volume with your usual volume backup tool, then run docker compose start. To move an earlier install's ./data into gostly-data, run docker compose run --rm --no-deps -v "$PWD/data:/old:ro" --entrypoint cp ghost-web -a /old/. /data/ before docker compose up -d.

Back up the secret-store key with the database

The README's backup steps copy the secret-store key with the database dump. Keep the two together and restore them together: a database backup alone cannot decrypt the saved provider and model credentials. Lite keeps the key at /data/secret-store.key on the gostly-data volume. Full keeps it on its own secret-store volume, at /var/lib/gostly/secret-store/secret-store.key (GOSTLY_SECRET_STORE_KEY_FILE). Preserve API-user ownership and mode 0600, and retain older key entries while stored credentials still depend on them.

The first key entry seals new values; retained entries open older values. Adding a new first entry changes future saves and does not re-encrypt existing rows. When restoring an older database with a newer key file, retain the newer file and add the required older entry rather than replacing the file. If key material is lost, restore matching material or re-enter the affected credentials. See secret-store configuration for file requirements and the credential-storage boundary.

Keep the released image digests

The repository's Compose files pin Gostly images to immutable release digests (@sha256:…). Preserve those references; do not replace them with :latest or a guessed release tag. Each release tag carries one complete image set, including the same image for the web service and database migration.

First boot

Run docker compose ps -a and confirm thatghost-migrate exited successfully and the serving containers are ready. Open http://localhost:3000 and sign in with your local administrator credentials. Register a test service with an upstream reachable from the proxy container and a host or path rule matching your client request. Wait for the service configuration to reach the proxy before sending traffic; a healthy process is not proof of capture readiness.

Select LEARN and send one authorized test request through port 8080. Confirm the expected response, an upstream request, and capture under the registered service. Resolve any agent_not_ready, missing-upstream, or authentication error before continuing. Choose Build mocks in the service's dashboard. This processes the captured traffic and switches that service to MOCK as part of the same transition. Wait for completion with processed records and no error, then confirm the service is in MOCK and repeat the request: the response should match without another upstream call. For durable replay evidence, repeat after restarting only the test proxy.

To skip pointing at a real upstream and start with a seed instead, drag a HAR, Postman collection, or OpenAPI spec onto the dashboard — it posts to the cold-start importer:

POST /v1/seed/har      # also: /v1/seed/postman, /v1/seed/openapi

The inference container's first /generate call after startup may briefly return 503 while the model loads (only relevant when generation is enabled). From there, drive the LEARN → MOCK pipeline as described in Quick Start.

What you can record & replay

Gostly records and replays HTTP and HTTPS (HTTP/1.1 and HTTP/2 over TLS). WebSocket frame capture is off by default. To opt in, set ENABLE_WS_CAPTURE=true in .env with a Compose file that forwards it to ghost-proxy, then recreate the proxy with docker compose up -d --force-recreate ghost-proxy.

After the proxy receives its service configuration, routed frame capture follows the service's traffic capture switch. Frame bodies have no per-frame redaction and frames are retained for observability, not replayed as conversations. TLS interception has a separate listener and trust setup; see the TLS and WebSocket guide.

There is no gRPC, async-messaging, or database mocking today (roadmap). Once the proxy has the service configuration, webhook capture follows the active service's webhook switch. Replay is operator-triggered through the control-plane API, not auto-fired by the proxy.

Inspect operator health

Run these commands from your installation directory, with its configured .env and Docker Compose access, while ghost-web is running. Use a matched release image and Compose set that supports the operator commands, and preserve the released image digests. The commands run inside the running API container and start no new container. Put --json after doctor when you want machine-readable output:

docker compose exec -w /app/api ghost-web python -m admin doctor
docker compose exec -w /app/api ghost-web python -m admin doctor --json

Doctor runs with the API's own settings and from the API container's network position, and a stopped service can fail its probe. An administrator can also use Settings → Status and Check again for the same checks. not_visible means a check could not inspect its target, not that it passed.

  • Database/schema: connection and migration ledger versus this image's heads, not data integrity.
  • Sign-in settings: enabled methods and required values, not a successful identity-provider login.
  • Administrator sign-in: locally configured methods and active SSO administrator bindings, not a successful identity-provider round trip. A missing SSO administrator is a recovery finding; see the break-glass procedure.
  • Private-origin allowlists: policy parsing, not a test delivery.
  • Agent reachability: HTTP 200 from the configured /health endpoint, not replay correctness.
  • Inference reachability: HTTP 200 from its configured /health endpoint, not generation quality.
  • Data directories: paths, mounts and OS access checks, without writing a test file.
  • Local license information: locally visible expiry, not current hosted entitlement.

Doctor leaves configuration unchanged and attempts an audit write; an audit record is not guaranteed. Normal JSON output uses gostly.admin.v1 with command, exit_code, result and audit. Help and usage errors do not produce this JSON envelope or an audit record; outer failures can return only an error object. On a nonzero exit, inspect the findings and output.

Use findings to diagnose setup; doctor does not repair it or establish application behavior. Follow the Quick Start to verify capture, library build and MOCK with your caller.

Metrics & health

The operator checks probe the configured agent and inference /health endpoints for HTTP 200, without inspecting the response content. The proxy also exports Prometheus metrics at /metrics for scraping into your own monitoring:

ghost_requests_total{match_type}

Request counter, one increment per match-path outcome (exact, smart_swap, session_verbatim, generated_cached, miss, …).

ghost_mock_library_size

Gauge of the current mock-library size.

ghost_io_errors_total{operation}

Disk-sink open/write failures, labelled by operation.

axum_http_requests_total / _duration

HTTP rate and latency for the proxy's own endpoints.

gostly_tls_*

The TLS-MITM subsystem family — ALPN negotiation, cert-cache hit/miss/eviction, and listener state.

Next steps