Installation reference
This page lists every field and option. The overview shows what it does and a first example.
Install the kdeps CLI to start building agents locally. Docker is optional - only needed if you want to build container images for deployment.
Already installed? Quickstart.
Installing the kdeps CLI
macOS (Homebrew)
brew install kdeps/tap/kdepsWindows (Scoop)
scoop bucket add kdeps https://github.com/kdeps/scoop-bucket
scoop install kdepsLinux packages (deb, rpm, apk, Arch)
Each release attaches native CLI packages, so the package manager tracks the install. Pick the file for your distro from the releases page:
sudo apt install ./kdeps_<version>_linux_amd64.deb # Debian, Ubuntu
sudo dnf install ./kdeps_<version>_linux_amd64.rpm # Fedora, RHEL
sudo pacman -U kdeps_<version>_linux_amd64.pkg.tar.zst # Arch
sudo apk add --allow-untrusted ./kdeps_<version>_linux_amd64.apk # AlpineUse linux_arm64 in the name on ARM machines.
Linux, macOS, and Windows (curl)
curl -LsSf https://raw.githubusercontent.com/kdeps/kdeps/main/install.sh | shWindows (PowerShell)
irm https://raw.githubusercontent.com/kdeps/kdeps/main/install.ps1 | iexInstalls kdeps.exe into %USERPROFILE%\.local\bin and adds it to your user PATH. To pin a version or choose a different directory:
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/kdeps/kdeps/main/install.ps1))) -Tag v3.0.0 -BinDir C:\tools\binWindows (wget in WSL or Git Bash)
wget -qO- https://raw.githubusercontent.com/kdeps/kdeps/main/install.sh | shNote: Git Bash or WSL also work if you prefer the shell-based installer above.
From source
Recommended: go install
go install github.com/kdeps/kdeps/v3@latestOr build manually:
git clone https://github.com/kdeps/kdeps.git
cd kdeps
make build
./kdeps --versionOn Windows without make (or Git Bash/WSL), build.ps1 and build.bat in the repo root do the same build with version/commit info embedded, matching make build:
.\build.ps1build.batVerify installation
kdeps --versionThe output is similar to this:
kdeps version 2.21.0First run: pick a profile
The binary ships no prompts, schemas, templates or tool definitions. The first command downloads them from kdeps.io (about 1.5 MB for everything). It asks how much:
What will you use kdeps for? (change it later with kdeps profile)
1) minimum kdeps run and validate: chat, httpClient, python, exec, apiResponse
2) workflows ~3.0k tok minimum, kdeps new templates and the components (sql, ...)
3) agent ~11.1k tok minimum and the agent loop tools: prompts, presets, file, shell and web tools
4) deploy ~3.0k tok workflows, and kdeps build/export: Docker and Kubernetes templates, LLM server recipes
5) full ~19.4k tok every asset set
6) custom tick the asset sets, or single items, yourself
(~tok: what the profile adds to the LLM context - prompts and tool definitions)
Choice [5]:kdeps run installs the harness, the events, and the actions only when the workflow has a chat resource. A workflow with no chat loads the schemas, the defaults, and the model lists.
If a later command needs more, kdeps installs only the parts that its loader needs. kdeps new installs the project template it writes. It upgrades the schema when that template needs a source the installed schema does not list. A small profile stays small and does not stop you. With minimum, a chat with loop: adds these core tools:
Files:
read_file,write_file,edit_file,list_files,tail_file.Shell:
bash_execand its job tools.search_localand memory. Installtools/knowledge_recallwhen a chat lists it.Web and search tools:
kdeps install tools, or one at a time (kdeps install tools/web_search).kdeps install <set>adds a set.kdeps profile <name>switches profile and prunes the rest.CI or Docker: no prompt. Set
KDEPS_PROFILE=agent(or another profile), or leave it unset to install only what each command loads.A shelf files the same items by category:
kdeps list ragshows one. The id staysset/name.
Docker (optional)
You need Docker only to build container images for deployment. For local development and tests, kdeps runs natively without Docker.
Install Docker
- macOS: Docker Desktop for Mac
- Windows: Docker Desktop for Windows
- Linux: Docker Engine
Verify Docker installation
docker --versionLocal LLMs (no install needed)
Default backend is llamafile: no server, no GPU, no API key. The alias llama3.2:1b (~1.1 GB) downloads on first run. Full aliases, Ollama, and GGUF: Local models.
kdeps llamafile list # see all known model aliases
kdeps upgrade models # newest registry (harvested nightly from HuggingFace)First-run setup
The first time you run kdeps in a terminal with no ~/.kdeps/config.yaml, it asks if you want to set up language models. Press Enter to skip the setup. If you select yes, kdeps opens the backend list and writes the configuration:
Set up language models in ~/.kdeps/config.yaml?
[1] Yes
[0] Not now
Enter number [0]: 1
How should kdeps run language models?
[1] llamafile local, self-contained, no server install (recommended)
[2] gguf local GGUF models via llama.cpp
[3] cloud OpenAI, Anthropic, DeepSeek, Groq, xAI, ... (needs an API key)
[4] ollama connect to an Ollama server
[5] router route across multiple models by strategy (advanced)
[0] Skip (configure later)Each choice fills in the matching llm: fields:
- llamafile / gguf - sets
backendand a default model. - cloud - sets
backend, prompts for the provider's API key, and stores it underllm.<provider>_api_key. - ollama - sets
backend: ollamaand the host URL. - router - collects the models to route across and a strategy (
fallback,round_robin,token_threshold,cost_optimized), written asmodels:andstrategy:underllm:.
In non-interactive environments (CI, pipes) kdeps skips the wizard and writes a fully commented template instead. To run the wizard again, remove ~/.kdeps/config.yaml, or edit it directly with kdeps config --edit.
Ollama (optional)
To use Ollama instead of the default llamafile backend:
# macOS / Linux
curl -fsSL https://ollama.com/install.sh | sh
ollama pull llama3.2:1bThen select it in ~/.kdeps/config.yaml:
llm:
backend: ollama # default is "file" (llamafile)Upgrading from v2
v3 groups the YAML keys and drops native resource kinds. A v2 file fails with an error naming each key's new place (workflow.settings is now deploy, session and repl), so kdeps validate lists every edit to make.
| v2 | v3 |
|---|---|
settings: (apiServer, webServer, input, TLS) | deploy: |
settings.agentSettings | deploy.runtime |
settings.session / settings.llm | top-level session: / repl: |
tests: | evals: (plus judges, repeat, threshold) |
resource requires, items, loop, onError | under flow: |
chat model, prompt, tools, jsonResponse, ... | grouped under model, context, harness, tools, rag, guardrails (LLM resource) |
exec:, python:, httpClient:, sql:, scraper:, ... | component: {name: exec, with: {...}} (http_request, web_scraper, ...) |
botReply:, input.sources: [bot], input.bot | input.listen (a listener) and a connector component (telegram_post, slack_post, discord_post) |
go install github.com/kdeps/kdeps/v2@... | go install github.com/kdeps/kdeps/v3@... |
browser, email, telephony and codeIntelligence resources are gone.
Troubleshooting
Permission denied error
If you encounter a Permission Denied error during installation:
curl -LsSf https://raw.githubusercontent.com/kdeps/kdeps/main/install.sh | sudo shCommand not found
If kdeps is not found after installation, add ~/.local/bin to your PATH:
# Add to ~/.bashrc or ~/.zshrc
export PATH="$HOME/.local/bin:$PATH"Then reload your shell:
source ~/.bashrc # or source ~/.zshrcDocker permission issues (Linux)
If you get permission errors when you run Docker commands:
sudo usermod -aG docker $USER
# Log out and back in for changes to take effectSee also
- Quickstart - build your first workflow API
- Agent loop - a chat that calls tools
- CLI reference - Complete command reference
- Workflow configuration - Learn about workflow settings
- Examples - Browse example workflows
