Privacy-First AI Infrastructure Framework — deploy and manage private AI on your own infrastructure.
Docs · Quickstart · Architecture · License
deepfellow-cli is the command-line tool for installing, configuring, and managing DeepFellow — a framework for running AI models on your own infrastructure with full data control, an OpenAI-compatible API, and a modular plugin system for prompt filtering, anonymization, and response validation.
- Git ≥ 2.30.0
- Python ≥ 3.10
- Docker Engine ≥ 28.0.0
- Package manager: uv, pipx, or pip
curl https://deepfellow.ai/install.sh | bashWindows: the CLI runs under WSL, not natively. From PowerShell:
irm https://deepfellow.ai/install.ps1 | iexThis installs WSL if needed, then runs the installer inside it.
Verify with deepfellow --help.
To uninstall:
deepfellow cli uninstallOr manually, depending on how the installer set it up:
uv tool uninstall deepfellow-cli # or pipx / pip3 uninstall
rm -rf ~/.deepfellow/cli-venv ~/.local/bin/deepfellow # dedicated venv (externally managed Python, e.g. Homebrew)deepfellow infra install # interactive — configures API keys, Docker network, etc.
deepfellow infra startdeepfellow infra service install ollama
deepfellow infra model install ollama gemma4:e4b
deepfellow infra model install ollama mxbai-embed-largeThese are the models deepfellow suite install sets up: gemma4:e4b for chat and mxbai-embed-large for embeddings. On weaker hardware, install gemma3:1b instead of gemma4:e4b as a lightweight variant.
Pick a model that fits your VRAM — see our model recommendations and Supported Models for guidance.
Already running Ollama on the host? Install ollama-external instead of ollama to connect to it rather than starting a new Ollama container — on macOS only Ollama running on the host can use the GPU (Metal):
deepfellow infra service install ollama-external --spec '{"url": "http://host.docker.internal:11434"}'
deepfellow infra model install ollama-external gemma3:1b--spec fields depend on the service; unknown fields are ignored, so url has no effect on ollama.
deepfellow server install # interactive — configures PostgreSQL, Qdrant, DeepFellow Infra connection
deepfellow server startdeepfellow server create-admin
deepfellow server logindeepfellow server organization create "My Company"
export ORG_ID=u4hdn4uamdu4hs
deepfellow server project create $ORG_ID "My Project"
export PROJ_ID=amdu4hsu4hdn4u
deepfellow server project api-key create $ORG_ID $PROJ_ID "my-key"Done. Your private AI is running and accepting OpenAI-compatible API requests.
Majority of commands run interactively by default. For scripting and automation, pass --non-interactive with the required options:
export DF_INFRA_API_KEY=dfapi-u4hdn4u-amdu4hs-cbgurg-223hdgr
deepfellow --non-interactive infra install
deepfellow --non-interactive server install \
--infra-url https://infra.local:8086 \
--otel-local # install a local debug-only OpenTelemetry collectorMost interactive prompts have a corresponding --flag. Run any command with --help to see all available options.
deepfellow infra install # Interactive setup
deepfellow infra start / stop # Start / stop DeepFellow Infra containers
deepfellow infra info # Show config & env vars
deepfellow infra ssl-on # Configure SSL
deepfellow infra service install # Add model backend (ollama, vllm, …)
deepfellow infra service list # List installed service backends
deepfellow infra service uninstall # Remove backend + its models
deepfellow infra model install # Pull a model
deepfellow infra model uninstall # Remove a model
deepfellow infra connect # Attach to a multi-node Mesh
deepfellow infra disconnect # Disconnect from Mesh
deepfellow infra env set # Set / unset env variable
deepfellow infra mcp add # Register an MCP server from a client config JSON
deepfellow infra mcp install # Install (start) a built-in or registered MCP server
deepfellow infra mcp list # List provisioned MCP servers
deepfellow infra mcp uninstall # Uninstall a provisioned MCP server
deepfellow infra mcp remove # Delete a custom MCP server's registration
deepfellow infra uninstall # Full removalTo use a built-in MCP server from Infra's catalog (e.g. brave-search), install it directly - mcp install
prompts for any field the server needs (e.g. an API key), the same way the WebUI's install form does:
deepfellow infra mcp install brave-searchTo bring your own MCP server instead, mcp add registers it from a standard MCP client config, passed via
--config <path> or piped on stdin - then mcp install starts it:
echo '{"mcpServers": {"duckduckgo": {"command": "npx", "args": ["-y", "duckduckgo-mcp-server"]}}}' \
| deepfellow infra mcp add duckduckgo
deepfellow infra mcp install duckduckgodeepfellow server install # Interactive setup
deepfellow server start / stop # Start / stop DeepFellow Server containers
deepfellow server info # Show config & env vars
deepfellow server create-admin # Create admin account
deepfellow server login # Authenticate for CLI admin tasks
deepfellow server password-reset # Reset user password
deepfellow server organization create # Create an organization
deepfellow server project create # Create a project
deepfellow server api-key create # Generate an API key
deepfellow server env set # Set / unset env variable
deepfellow server database status # Show the database in use and what a migration kept
deepfellow server database check # Check a MongoDB install is ready to move (changes nothing)
deepfellow server database migrate # Move a MongoDB install to PostgreSQL (optional until 0.43)
deepfellow server database rollback # Go back to MongoDB after a migration
deepfellow server database cleanup # Remove what a migration kept for a rollback
deepfellow server uninstall # Full removalserver install installs new servers on PostgreSQL (a local one, or an external one with --postgres-url). Installs still on MongoDB keep working, but MongoDB is deprecated: move the data with deepfellow server database migrate when convenient. From 0.43, deepfellow server update moves the data as part of the update.
deepfellow server database checktells whether the data is ready to move, without changing anything: it checks the server image, the free disk space for the MongoDB snapshot (twice the MongoDB data size) and runs the migration's dry run in a temporary PostgreSQL that is removed afterwards. It exits non-zero when it finds a problem.deepfellow server updateto 0.42 offers the move right after the update (default No;--yesdoesn't answer it). Non-interactive, it moves the data only with--migrate-database.- After a move,
deepfellow server database rollbackgoes back to MongoDB anddeepfellow server database cleanupremoves what was kept for that.
server install sends the server's own telemetry to an OpenTelemetry collector over OTLP/gRPC (--otel-url), or installs a local collector (--otel-local). The server also forwards telemetry of other applications (e.g. DeepFellow Workspace) to the collector over OTLP/HTTP and adds the ID of the project that sent it in the X-DF-Project-Id header.
- Local collector: configured by the CLI. The server forwards to
http://otel-collector:4318, and the project ID ends up in thedf.project.idattribute of every span and log record. - External collector: pass its OTLP/HTTP url with
--otel-collector-http-url(or answer the prompt), e.g.--otel-collector-http-url https://otel.example.com:4318. Without it, the server forwards to its defaulthttp://otel-collector:4318, which doesn't exist without the local collector, so/otel/tracesand/otel/logsreturn 502. To keep the project ID, set up the collector yourself:
receivers:
otlp:
protocols:
http:
endpoint: 0.0.0.0:4318
include_metadata: true # keep request headers as client metadata
processors:
attributes/df-project:
actions:
- key: df.project.id
from_context: metadata.x-df-project-id
action: insert
batch: {}
service:
pipelines:
traces:
receivers: [otlp]
processors: [attributes/df-project, batch] # before `batch` - `batch` drops client metadata
exporters: [...]
logs:
receivers: [otlp]
processors: [attributes/df-project, batch]
exporters: [...]All state lives in ~/.deepfellow/ — env files, Docker Compose configs, secrets, and model storage. Use deepfellow infra info or deepfellow server info to inspect current settings, or env set to modify them. See Installation docs for the full list of environment variables.
- Architecture — Server, Infra, and Mesh topology
- Plugins — Prompt filtering, anonymization, response evaluation
- Integrations — LangChain, Sindri, vector stores, MCP toolbox
- Supported Models — Full list with VRAM requirements
- Security & Control — Data sovereignty, access management
- Running on AWS — Cloud deployment guide
- API Reference — OpenAI-compatible endpoints
See RELEASE.md for the release process.
just check # ruff lint + format, mypy, license headers, deptry import audit
just deptry # import audit only
just test # pytest with coveragejust deptry runs deptry to detect transitive dependencies used directly, undeclared imports, and unused declared dependencies. Transitive dependencies are not guaranteed to be available when installing via uv tool install, so every runtime import must be declared explicitly in [project.dependencies]. The same check runs in CI on every MR.
DeepFellow Free License — free for personal use and organizational R&D. Commercial use requires a commercial license.