aiv CLI steps below. You do not need to install a Skill or use an AI assistant. A release package containing the required features avoids a source checkout; see step 1 for seekdb CLI requirements. aiv cast handles dependency orchestration and initialization.
This page covers the Docker CLI path. See deployment choices and shared services to compare it with product Compose, which does not require a prior CLI installation, and Kubernetes.
If your team already provides a platform URL, go directly to connecting your first Agent or sending an SDK test record. You do not need another deployment.
Docker remains the default. aiv cast (or --target docker) keeps the Go CLI Docker runtime. Compose and Kubernetes are optional; see deployment choices. Optional Compose also uses the Go CLI to invoke native docker compose with the necessary checks, without host Python or an additional control script. Existing Docker installations are not converted automatically.
Choose a database first
For personal use with lower self-hosted database resource requirements, you can choose OceanBase seekdb. It runs in a separate Docker database container. SigNoz, the collection gateway, backend, AgentLens and frontend are still deployed in full. OceanBase CE remains the default; the CLI does not automatically switch to seekdb when the machine has less memory.
These figures cover only the database. Do not size the entire platform for 2G memory or 4G total disk space. Other services, logs and actual data growth need additional resources; adjust for your workload. Override seekdb’s
SEEKDB_CPU_COUNT, SEEKDB_MEMORY_LIMIT, SEEKDB_DATAFILE_SIZE and SEEKDB_LOG_DISK_SIZE in the variables file as needed.
Managed seekdb currently uses a pinned Linux/amd64 image. ARM hosts need suitable Docker emulation or an independently validated image supplied through OB_IMAGE; an ARM CLI package does not establish native database-image validation. Use Docker aiv cast or the current product Compose lifecycle for managed seekdb. Older generic Compose exports omit initialization and are unsupported; generic Kubernetes/systemd conversion and fixed Kubernetes deployment do not support managed seekdb.
Prepare for manual deployment
- Docker can run Linux containers, and your current user can access the Docker daemon.
curl,tar, and network access to GitHub Releases, GHCR and Docker Hub. The OceanBase image comes from Docker Hub.- Reserve resources for your chosen database and the remaining platform components. With Docker Desktop, allocate enough CPU, memory and disk space to its VM as well.
- The default ports are available; see the port table below. Reuse the original configuration for an existing deployment. Changing only the namespace does not avoid container-name or port conflicts.
docker info must connect to the daemon successfully. Deployment does not require an AI Vision account; register or sign in after the services start.
Check resources for the complete platform
The table lists database defaults. It does not provide a capacity-benchmarked minimum CPU, memory, or disk specification for the complete platform. Record available resources before deployment, then inspect both idle usage and representative tasks after deployment. Allow for retention and concurrency growth.docker info shows the daemon’s CPU count, total memory, and Docker Root Dir. docker system df -v shows image, volume, and cache usage, not free disk capacity. With native Docker on Linux, also run free -h and check df -h for the filesystems holding Docker Root Dir and the deployment directory. For Docker Desktop, check CPU/memory allocation and the disk image limit in its resource settings. On macOS, df -h describes the host filesystem and does not replace checking the VM’s disk capacity.
After deployment, use docker ps -a to find this deployment’s container names. Replace CONTAINER_NAME below with an actual name and check each container:
OOMKilled=true indicates that Docker recorded an out-of-memory termination in the container state. Exit code 137 alone does not establish OOM. Investigate sustained memory near the limit, increasing restart counts, or repeated health failures with the component’s logs. Decreasing filesystem free space, a Docker disk image near its limit, or no space left on device in logs calls for capacity investigation; do not delete platform data volumes to retry deployment. One idle snapshot cannot establish sufficient peak capacity. See Docker’s resource statistics and disk usage references.
1. Install the aiv CLI
Use Install aiv CLI to select your OS and CPU architecture, download and verify the archive, configure persistent PATH, then confirm in a new terminal:OB_BACKEND. This command neither writes a file nor starts deployment. If the command is unavailable or the entry is missing, build a CLI with seekdb support before continuing. A version number or a package named dev alone does not prove support.
The current image lifecycle also requires matching backend /api/v1/ready, diagnosis /internal/readyz and organization-file support, gateway /app/collector healthcheck --ready, data-backend /api/v1/ready and /app/signoz healthcheck --ready, plus bounded shutdown and the shared metadata connection-pool fix. A merged source change or old dev / latest image does not establish these capabilities. Use a release documented to contain them, or build the matching source candidates; see material and image requirements. Missing readiness endpoints must fail rather than being replaced by liveness checks.
These commands use the built-in blueprint, --target docker, namespace aivision and the default state root --workdir "$HOME/.aivision/forge". The state root differs from the deployment directory holding YAML. For an existing deployment, use its original values. If it used a custom blueprint, retain the original --file /absolute/path/blueprint.yaml on every command too. Keep the same target, namespace, workdir and blueprint selectors for status, logs, cast, redeploy and destroy; configuration updates and failed retries also use the original vars file.
2. Keep a deployment directory and configuration
The following steps use the default namespace,aivision. Keep a fixed directory on the deployment machine for retries and upgrades:
aivision.vars.yaml and namespace, and skip the file-creation command below. The history start must cover the earliest retained Trace. If you do not know the start, inspect the data first; do not replace it with today’s date.
Run the following command once only after confirming that storage is empty, with no reused volumes or restored history. It saves the current UTC day’s start for later Langfuse v1 history reads and refuses to overwrite an existing file:
- OceanBase CE: no database selector is required by default. To save it explicitly, use
OB_BACKEND: "oceanbase". - Managed seekdb: add the following in an editor. First replace the password placeholder with a nonempty random password that you generate and store securely, using only letters, digits,
_and-:
OB_TENANT_PASSWORD is also the database password variable for seekdb. The account is root, with no OB_TENANT required. Edit an existing key rather than adding a duplicate. For a new empty volume, credentials are initialized on an isolated internal network before normal service starts. An existing volume only has its original password verified; editing YAML does not rotate that password.
- Existing database: follow “Optional: reuse an existing database” below to set
OB_MANAGED: "false"and connection details, then run the same complete deployment command.
release-manifest.json, SHA256SUMS and the matching CE or seekdb release vars from the same versioned Release, then merge all five image references and AIVISION_RELEASE_MANIFEST_BASE64 into this private file without duplicate keys. Preserve your database settings, credentials and history start. Use full FRONTEND_IMAGE, BACKEND_IMAGE, DIAGNOSIS_IMAGE, INGEST_GATEWAY_IMAGE and DATA_BACKEND_IMAGE references, or their legacy spellings from the release vars. Source candidates need explicitly verified image references too; without release metadata, About may show the installed product version as unknown. See the version selection reference.
3. Prepare image access when needed
If images allow anonymous pulls or this machine already has a valid login, continue to deployment. Only if you receivedenied or unauthorized, sign in with a GitHub account that has permission to pull the images:
Password: prompt, enter a classic PAT with read:packages, rather than your GitHub account password. Do not put the token in the command. Network timeouts, insufficient disk space and interrupted downloads need their own fixes; they do not all indicate a missing login.
4. Start the complete platform
This complete command reads the database choice saved in step 2: it deploys OceanBase CE by default, or seekdb whenOB_BACKEND: "seekdb" is configured. No other service startup steps need to change:
5. Verify and open the platform
After installation and deployment, open a new terminal and run these commands.command -v must resolve the retained CLI installation; then inspect the same deployment:
- With managed OceanBase CE or seekdb, all six components show
runningand healthok. With an external database, there are five components plus a separate database connection entry. Thestatusexit code alone does not establish success. - Backend logs show no persistent startup or migration errors, and the Web request returns
200. If you changed the frontend port, use the actual address. - Open the reported Web URL in a browser, confirm that the sign-in page appears, and register or sign in.
status must show the saved OB_BACKEND as seekdb under variable overrides. Current source output uses the database role while retaining old physical names and selectors; an older CLI may show oceanbase. Neither label proves the engine choice by itself. Combine the saved configuration with health checks and the new Trace acceptance step below.
On first use, choose Register on the sign-in page and create an AI Vision account with your own email, name and chosen password. You can also register through the CLI quickstart. Database and SigNoz passwords in deployment configuration are internal service credentials, not AI Vision Web sign-in credentials. Sign in directly with an existing account; if registration is disabled, ask the operator for an account.
These checks verify platform startup. Next, connect an Agent or send an SDK test record, then use an identifiable new Trace to verify collection and queries. A reachable page does not establish that the collection path works.
Default ports and data locations
Read actual values from
aiv status --target docker --namespace aivision --workdir "$HOME/.aivision/forge". Deployment state, logs and the SigNoz metastore default to ~/.aivision/forge/aivision/; the selected database stores its data in Docker named volumes. seekdb uses aivforge-seekdb-data-aivision, mounted at /var/lib/seekdb; a custom namespace changes the volume name accordingly. Keep the variables file, state directory and data volumes. Saving only the YAML file is not a database backup.
Optional: reuse an existing database
Choose one of the following configurations, use the existing database’s actual password, and preserve the original history start. The CLI checks connectivity and attempts to create the required databases; the account needs permission to create and migrate them.Existing OceanBase CE
Add the actual connection settings to the same variables file, keeping its configured history start:- Use a MySQL-mode user tenant. Its
root@tenantaccount must be able to create and migrate theaivision,signozandagentlensdatabases. OB_HOSTmust be reachable from the container network. Inside a container,127.0.0.1refers to that container, not the host database.- Current connection strings interpolate the tenant password directly. Use letters, digits,
_and-; avoid unescaped URL special characters.
cast command from step 4 and verify again. This mode skips the managed database container but still initializes the required databases.
Existing seekdb
Use the following database configuration in the same variables file, replacing the address and password. Do not combine it with the CE configuration above:OB_TENANT. The default root account or specified OB_USER must be able to create and migrate the aivision, signoz and agentlens databases. The host must be reachable from the container network, and the password must use letters, digits, _ and -. --vars-file alone does not enable external-database mode; keep OB_MANAGED: "false". Save the file, run chmod 600 ./aivision.vars.yaml, execute the complete step 4 command, and verify with step 5.
Optional: allow access from other machines
The deployment is local-only by default. For remote access, configure an IP address or hostname that clients can reach before the firstcast, for example:
192.0.2.10. Browsers and Agents need access to Web port 5174 and OTLP port 4318, respectively (4317 for gRPC). PUBLIC_HOST is included in Web-generated connection commands and reporting endpoints; do not leave it set to the deployment machine’s loopback address.
This template is for a first deployment with empty storage. Before exposing it, add the following entries to the same aivision.vars.yaml in an editor, preserving its history start and connection settings. For an existing environment, follow the services’ credential rotation procedures; changing YAML alone does not rotate a database password already in use. Replace every placeholder with a separately generated random value and store it securely; do not deploy these placeholders. Database passwords must use letters, digits, _ and -.
OB_TENANT_PASSWORD equal to the database’s actual password. Edit an existing key rather than adding a duplicate. seekdb does not use OB_SYS_PASSWORD. Save the file, run chmod 600 ./aivision.vars.yaml, then run the complete step 4 command and verify.
Maintain credentials according to your upgrade policy in an existing environment; do not change them simply to retry. The deployment operator configures HTTPS and domain proxying. The Docker blueprint cannot directly use Kubernetes PUBLIC_SCHEME or PUBLIC_PORT settings.
SDK v1 history reads and upgrades
AIVISION_NATIVE_TRACE_HISTORY_START is a fixed UTC origin at or before the earliest retained Trace. Step 2 saves this value for empty storage. Reuse the original value in an existing environment, and move it earlier before importing older data. Do not recalculate today’s date during upgrades, restarts or variable resets.
Ingestion alone does not require this value. Native Trace, Observation and Session v1 reads return HTTP 503, code 3038, when it is missing; narrowing a query does not bypass the requirement. It bounds the read range without changing retention or deletion policies.
To update, merge the selected version’s five verified image references and release metadata into the original private variables file, preserving credentials, history start and storage settings. Changing only IMAGE_TAG does not replace saved per-component image references or provide a release record. Rerun step 4 from the original deployment directory with the same namespace and variables file, then verify actual image IDs, organization identity, and authenticated reads of both new and retained Traces. Containers are replaced while the selected database’s volumes and the SigNoz metastore are preserved. Allow a maintenance window and back up separately before upgrading; replacing the same image does not establish a cross-release upgrade.
Reapply the selected configuration from the original deployment directory with the same selectors:
Native Trace and Session query acceleration
On matching source builds, query acceleration is standard: schema migration, automatic projection maintenance, bounded list previews and batched Session/Token queries run without strategy-specific flags. Older released images may not include this behavior. The normal backend entrypoint supervises the API and maintenance worker; the worker discovers Spaces and native routes, enrolls history and refreshes changed Traces. Bootstrap remains a separate one-shot task. Use the two role keys in the original private vars file:BACKEND_QUERY_MODE: "auto" ("raw" bypasses projections for Trace lists, canonical Session lists and facets while preserving filters) and DATA_BACKEND_PROJECTION_MAINTENANCE_ENABLED: "true" ("false" durably suspends derived maintenance and serving across instances). They map to the application environment variables AIVISION_QUERY_MODE and SIGNOZ_AIVISION_PROJECTION_MAINTENANCE_ENABLED; these are two controls with aliases. Role keys take precedence over legacy keys in the same configuration layer. Since the templates already contain role defaults, edit those entries rather than appending only a legacy key.
Reapply step 4 from the original deployment directory with the same namespace and vars file, preserving credentials and data. Product Compose users instead reuse the original aiv cast --target compose --compose-file ... --compose-env-file ... lifecycle and private .env; allow for its maintenance window and check the matching readiness, bootstrap and lifecycle capabilities before selecting images. Deployment assets are maintained under canonical deploy/; after changing source inputs, run make assets in aivision-cli/ to regenerate embedded and Compose assets. Use the matching CLI and templates.
A normal restart preserves completed coverage. The first managed migration rebuilds historical derived state and retains raw Spans. During catch-up, one consistent storage snapshot combines clean summaries with the remaining raw Spans. If complete summaries exceed the response budget, recovery reads the complete raw window in the same transaction, retaining the same limits. Complete recovery supports at most 50,000 Traces, 500,000 raw Spans and 256 MiB per window; exceeding a bound asks for a narrower range, never a truncated success. Token ≥0 still excludes unknown billable usage.
Restoring maintenance to true on all writers does not automatically clear a shared suspension. Repair the cause, then explicitly resume/rebuild in the backend environment. This requires the existing SigNoz admin credential and deployment-internal ingest key. Supply the key only to recovery; ordinary backend service configuration does not require it. Find the actual backend container in aiv status with the original namespace, or native Compose ps --all with the original project name, file and env, and replace YOUR_BACKEND_CONTAINER below. With SIGNOZ_INGEST_INTERNAL_KEY exported from the original private configuration, passing its name inherits the value without putting it in command arguments:
BACKEND_QUERY_MODE to auto.
Manual imports, retention, restore and direct database edits bypass source tracking: suspend maintenance before them and explicitly resume afterward. A functional rollback does not require dropping standard STORED Token columns. See the source operator reference and same-data test report. Prepared local clone results do not establish production performance, Kubernetes execution or published-image behavior.
Changing databases is not an in-place upgrade
The same namespace cannot switch from OceanBase CE to seekdb or vice versa. The CLI retains that choice even after a partially failed first deployment or a normaldestroy. CE and seekdb volumes are not interchangeable. To change databases, create a separate deployment and migrate data explicitly. Running both on one machine also requires different container names and a complete set of port overrides; changing only the namespace is insufficient.
Logs and stopping services
-f follows logs; press Ctrl+C to stop following.
To rebuild the containers, use the same selectors and original configuration:
redeploy stops and rebuilds services, requiring a maintenance window. It does not replace backups or image verification before a version upgrade. Do not add --purge to a normal update.
To stop the Docker deployment while keeping its data:
cast command to start them again. destroy --purge deletes managed OceanBase CE or seekdb volumes and deployment state for the namespace, including the default SigNoz metastore. It does not clear external OceanBase CE or seekdb. Use it only when you explicitly intend to clear the environment.
Controlled stops check successful exit and OOM state before continuing. A failed stop, including a timeout, nonzero exit or OOM, blocks the operation; private records under state/lifecycle-stops/ keep checking the exact failed container on retry. Inspect its logs and fix the cause, then restart it and stop it successfully, or deliberately remove only the diagnosed failed container while retaining data. Do not delete stop records to bypass the gate. Shutdown budgets do not guarantee that every long request, diagnosis task or telemetry batch drains without loss. CLI and Compose do not automatically adopt each other’s deployments, and Compose purge has different retention semantics.