A function per event
A request, a chat message or a webhook starts one bounded run. The logic is YAML only.
See the events
Serverless AI agents
Lambda-style AI agents on your own hardware. One workflow.yaml runs once per event, offline, and ships as an API, a binary, an image, or an ISO.
actionId: llmvalidations: check: - get('q') != '' # 400 before any model callchat: model: name: ministral3 # local, no API key context: prompt: "{{ get('q') }}" loop: # a bounded agent step tools: [read_file] maxRounds: 5runs on
who it's for
The model ships with the workflow, so all of it runs inside your boundary.
git-native
The YAML in your repository defines what the appliance does. A commit changes the behavior, and git history is its changelog.
validations:
check:
- get('q') != ''
+ - len(get('q')) < 2000 # reject prompts over 2000 characters
chat:
model:
- name: llama3.2:1b
+ name: qwen2.5:7b
context:
prompt: "{{ get('q') }}"One commit, two behavior changes. The diff is the change.
getting started
Write YAML. Run it. Ship the same file.
Put the steps in one workflow.yaml.
kdeps run serves it as an API, a listener, a file job, or a prompt.
Ship the same file as an image, a binary, or an ISO.
events in, calls out
Each event starts one bounded run, as with a serverless function. A listener receives the event, and a connector sends the answer. Keys stay in an encrypted vault.
book
From your first agent to production deployment, in one book.
Build & Deploy Autonomous AI Agents and Agencies in YAML
From a first workflow to an offline appliance in production.
Read the book ->