kdepsのロゴ

kdeps

組織
kdeps

AI Appliance Builder - YAML-defined AI agents and workflow pipelines. Ship as Docker, K8s, ISO, or a single binary.

公開者kdeps
リポジトリkdeps
言語Go
フォーク
5
スター
37
利用可能なツール
0
通信方式stdio
カテゴリ
ライセンスApache-2.0
リンク
  • ツールをAIワークフローに接続

    kdepsは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには37件のスターと5件のフォークがあります。

kdeps

Build and Test Coverage Release Go License CodeQL Docs Documentation Registry GitHub stars

Before moving on, please consider giving us a GitHub star ⭐️. Thank you!

Git-native AI Appliance Builder - your agent is YAML in your repo; ship the workflow, tools, and model as one self-contained deployment that runs anywhere.

kdeps packages an AI workload - agent or deterministic API, not a chatbot - into a unit you can run as a terminal REPL, an HTTP API, a Docker image, Kubernetes manifests, a bootable ISO, or a single binary. The definition is text you commit: reviewed as a pull request, versioned by git tag, built reproducibly from a commit in CI. Change the YAML, and the appliance behaves differently - your git history is the changelog of the agent's behavior. One YAML file replaces a Python script wiring together an LLM SDK, a web server, retry logic, and a Dockerfile. It runs open-source, self-hosted models by default, so the built appliance has no per-token cost and no dependency on an external AI service - it works the same on a laptop and inside an air-gapped network. kdeps is a small number of bounded pieces - pick the one you need:

  • kdeps agent - run kdeps and you are in an autonomous AI REPL: tool use, memory, fully offline against a local model. No config, no API key.
  • kdeps workflow - define what the agent does in one workflow.yaml and run it as an HTTP API, a bot, or a file processor. Same file, laptop or server.
  • kdeps agencies - coordinate several specialized agents as one system, delegating work through the agent: resource.
  • kdeps LLM server - provision a standalone OpenAI-compatible inference appliance, no workflow path required.
  • kdeps deploy - ship a workflow unchanged as a Docker image, Kubernetes manifests, a bootable ISO, or a single binary.
  • kdeps registry (optional) - find, install, and publish shared agents and components by name. Not needed to build or run your own.

Quickstart

yaml
# workflow.yaml - a two-resource chat API. No LLM server needed: the default
# model (llama3.2:1b) runs as a local llamafile, downloaded on first run.
apiVersion: kdeps.io/v1
kind: Workflow
metadata:
  name: my-agent
  version: "1.0.0"
  targetActionId: response   # the resource whose output is the HTTP response
settings:
  apiServer:
    portNum: 16395
    routes:
      - path: /api/v1/chat
        methods: [POST]
resources:
  - actionId: llm
    name: LLM Chat
    validations:
      methods: [POST]
      routes: [/api/v1/chat]
      check:
        - get('q') != ''      # 'q' comes from the JSON body
      error:
        code: 400
        message: "'q' is required"
    chat:
      model: llama3.2:1b      # a name, "router"/"auto-router", or "system" (follow ~/.kdeps/config.yaml)
      role: user
      prompt: "{{ get('q') }}"
      timeout: 60s
  - actionId: response
    name: API Response
    requires: [llm]            # runs after 'llm' - the DAG resolves order
    apiResponse:
      success: true
      response:
        answer: get('llm').message.content
bash
# KDEPS_API_AUTH_TOKEN is the HTTP endpoint's bearer token - not an LLM key
export KDEPS_API_AUTH_TOKEN=dev-token
kdeps run workflow.yaml

curl -s -X POST localhost:16395/api/v1/chat \
  -H "Authorization: Bearer $KDEPS_API_AUTH_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"q": "What is entropy, in one sentence?"}'
# {"success": true, "data": {"answer": "Entropy is a measure of disorder..."}}

More examples: kdeps.com/examples (25 walkthroughs, each a working project).

Install

bash
curl -LsSf https://raw.githubusercontent.com/kdeps/kdeps/main/install.sh | sh

Windows (PowerShell):

powershell
irm https://raw.githubusercontent.com/kdeps/kdeps/main/install.ps1 | iex

Or with Homebrew (macOS and Linux):

bash
brew install kdeps/tap/kdeps

How it works

Whichever piece you use, a workflow runs in one of two execution modes - and an agency bundles several workflows into one system.

Workflow mode

DAG-deterministic request/response pipelines. Each resource declares its dependencies via requires: and runs in order, ending in an apiResponse.

The LLM call inside a chat: resource is still probabilistic, but the pipeline around it is not: the same request takes the same path, validation runs before any model call, and the response is shaped to a fixed schema.

Resources cover LLM chat, HTTP, Python, shell, SQL, email, web scraping, browser automation, embeddings, local and web search, and calls to other agents or components. Expressions (get(), output(), set(), plus Jinja2 control flow) wire the steps together.

bash
kdeps run workflow.yaml          # local, instant startup
kdeps run ./my-agent/            # or point at a directory containing workflow.yaml
kdeps run workflow.yaml --dev    # hot reload

Agent loop mode

An autonomous LLM loop. Every workflow becomes a callable tool, and the LLM decides which to call, in what order, to complete the task. Runs as an interactive REPL until you exit (Ctrl+D). Each prompt is rewritten for clarity before the turn (/refine off to disable). Sessions and memory are kept per working directory under ~/.kdeps/; kdeps in a folder with history offers a resume picker.

bash
kdeps                            # bare agent loop REPL (resume picker if this folder has history)
kdeps --new                      # start a clean session, skip the picker
kdeps ./my-agent/ --model llama3.2 --system "You are a DevOps assistant."
kdeps --theme black              # flat legible dark-gray disguise theme (model name abbreviated); also linux, vim, emacs

Agencies

A collection of agents that work together. Each agent is its own workflow.yaml with its own resources, model, and logic, wired together with the agent: resource type - like calling a function, but the function is an entire AI pipeline.

bash
kdeps run agency.yaml

Docs: Workflow mode · Agent loop mode · Agencies · Resources overview

Build and deploy

The workflow you run locally exports unchanged to any target:

bash
kdeps bundle build .        # Docker image
kdeps export iso            # bootable edge ISO
kdeps bundle prepackage     # self-contained binary per arch
kdeps export k8s            # Kubernetes manifests

For a public HTTPS endpoint, add static PEM files or automatic Let's Encrypt to workflow.yaml, point DNS at the host, and open ports 80 and 443:

yaml
settings:
  letsEncrypt:
    domain: api.example.com
    email: ops@example.com
  apiServer:
    hostIp: "0.0.0.0"
    portNum: 443

Docs: Deployment guide · TLS and HTTPS

Reference

  • Registry - kdeps registry search|install|submit for pre-built components. kdeps.io
  • Agent skill - npx skills add https://github.com/kdeps/skill --skill kdeps teaches Claude Code, Cursor, and other agents to scaffold kdeps projects. Docs
  • LLM server appliance - kdeps llm wizard builds a standalone OpenAI-compatible inference server (ollama, llamafile, gguf, vllm, tgi, sglang, and more), no workflow path required. Docs · Commands
  • Global config - machine-local settings (LLM backend, API keys, SQL/SMTP/IMAP connections) live in ~/.kdeps/config.yaml, never in workflow.yaml. kdeps edit to open it, kdeps doctor to check it. Docs
  • Security - when apiServer is set, requests require a bearer token (KDEPS_API_AUTH_TOKEN) and pass through rate-limit, body-size, and concurrency caps before reaching the DAG. Docs
  • Logging - structured JSON via log/slog. KDEPS_LOG_FORMAT=json for production; default level WARN; --verbose (INFO), --debug (DEBUG).
  • Innovation technology - two standalone Go tools built alongside kdeps: kdeps/kartographer (graph library for resolving dependent nodes - powers the requires: DAG and folder/skill graphs) and kdeps/turo (reduces prose to content words to cut LLM input tokens - the optional agent-mode prompt reducer).
  • Book - AI Appliances - Build & Deploy Autonomous AI Agents and Agencies in YAML. Free (PDF, EPUB, web).

Documentation | Registry | Apache 2.0

インストール

TypingMind
{
  "mcpServers": {
    "kdeps": {
      "command": "kdeps",
      "args": [
        "mcp"
      ]
    }
  }
}

kdepsのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度kdepsに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

kdepsをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. kdepsのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "kdeps": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてkdepsのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. kdepsのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
kdepsを使ってこのタスクを手伝ってもらえますか?
kdeps
はい、読みました。
kdepsで調べた結果をお伝えします。

よくある質問

kdeps MCPサーバーは何に使いますか?

kdepsは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでkdeps MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでkdepsを利用できます。

TypingMindでkdeps MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。kdepsを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

kdeps MCPをTypingMindに接続するにはどうすればよいですか?

kdepsはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでkdeps MCPのどのようなツールを利用できますか?

kdepsはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

kdeps MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。kdepsで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇