Part of Forge Documentation
Forge agents can be packaged as container images and deployed to Docker, Kubernetes, or air-gapped environments.
# Build a container image (auto-detects Docker/Podman/Buildah)
forge package
# Production build (rejects dev tools and dev-open egress)
forge package --prod
# Build and push to registry
forge package --registry ghcr.io/myorg --push
# Generate docker-compose with channel sidecars
forge package --with-channels
# Export for Initializ Command platform
forge export --pretty --include-schemasforge package generates a Dockerfile, Kubernetes manifests, and NetworkPolicy. Use --prod to strip dev tools and enforce strict egress. Use --verify to smoke-test the built container.
Production builds (--prod) enforce:
- No
dev-openegress mode - No dev-only tools (
local_shell,local_file_browser) - Secret provider chain must include
env(not justencrypted-file) .dockerignoremust exist if a Dockerfile is generated
forge package --with-channelsThis generates a docker-compose.yaml with:
- An
agentservice running the A2A server - Adapter services (e.g.,
slack-adapter,telegram-adapter) connecting to the agent
Every forge build generates container-ready artifacts:
| Artifact | Purpose |
|---|---|
Dockerfile |
Container image with minimal attack surface |
deployment.yaml |
Kubernetes Deployment manifest |
service.yaml |
Kubernetes Service manifest |
network-policy.yaml |
NetworkPolicy restricting pod egress to allowed domains |
egress_allowlist.json |
Machine-readable domain allowlist |
checksums.json |
SHA-256 checksums + Ed25519 signature |
Forge can run entirely offline with local models:
- Use
ollamaas the LLM provider with a locally-hosted model - Set egress mode to
deny-allto block all outbound traffic - Pre-install all binary dependencies in the container image
- Use environment variables for secrets (no passphrase prompting needed)
model:
provider: ollama
name: llama3
egress:
mode: deny-allFor Initializ Command integration, export the agent spec:
# Export with embedded schemas
forge export --pretty --include-schemas
# Simulate Command import
forge export --simulate-importSee Command Integration for the full integration guide.
← Dashboard | Back to README | Plugins →