Add: Codebuff local deployment one-liner article and script
Deploy Docusaurus Site / deploy (push) Successful in 53s

This commit is contained in:
2026-03-05 06:36:15 +00:00
parent c619b26c2f
commit 10ac60062f
4 changed files with 93 additions and 1 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

@@ -0,0 +1,51 @@
---
sidebar_position: 2
title: Codebuffをローカル展開するワンライナー
description: OpenRouter + Codebuffをローカル環境に最短で導入する手順
hide_table_of_contents: false
displayed_sidebar: null
image: /img/codebuff-local-oneliner-banner.png
---
# Codebuffをローカル展開するワンライナー
Codebuffを手元マシンでサクッと使えるようにするための最短手順です。
## 前提
- Node.js 18+
- `OPENROUTER_API_KEY` を取得済み
## ワンライナー
```bash title="セットアップ一発実行"
export OPENROUTER_API_KEY="sk-or-xxx" && curl -sL https://www.techswan.online/scripts/codebuff-local-setup.sh | bash
```
特定のプロジェクトディレクトリを指定する場合は以下:
```bash title="プロジェクト指定"
export OPENROUTER_API_KEY="sk-or-xxx" && curl -sL https://www.techswan.online/scripts/codebuff-local-setup.sh | bash -s -- ~/my-project
```
## 何をしているか
1. `npm i -g codebuff`
2. プロジェクトへ移動
3. `/init` 実行(`knowledge.md` と `.agents` を生成)
4. `codebuff` 起動準備
## 使い方のコツ
- 初回は「まずプロジェクトの構造を説明して」から始める
- 次に「小さな修正」を頼んで挙動を掴む
- いきなり大改修より、段階的に指示した方が安定
## 参考リンク
- [Codebuff GitHub](https://github.com/CodebuffAI/codebuff)
- [OpenRouter Models](https://openrouter.ai/models)
---
*この記事は2026年3月時点の情報です。*
+2 -1
View File
@@ -23,6 +23,7 @@ slug: /
## 縺昴
- [繝ュ繝シ繧ォ繝ォ繧オ繝シ繝舌縺ァ繝槭う繧ッ繝サ繧ォ繝。繝ゥ繧剃スソ縺婿豕評(/tech/browser-secure-context/)
- [Codebuff繧偵Ο繝シ繧ォ繝ォ螻暮幕縺吶k繝ッ繝ウ繝ゥ繧、繝翫](/tech/codebuff-local-oneliner/)
- [繧イ繝シ繝逕サ髱「繧偵Μ繧「繝ォ繧ソ繧、繝鄙サ險ウ縺吶kAI繧「繝励Μ繧剃ス懊▲縺溯ゥア](/tech/game-vision-companion/)
- [繝ュ繝シ繧ォ繝ォGitea テ Webhook騾」謳コ縺ァ縲、I縺ィ縺ョ髢狗匱繧偵b縺」縺ィ讌ス縺ォ縺励h縺シ‐(/tech/gitea-webhook-ai-review/)
- [Issue 遶九※繧九□縺代〒 AI 縺後さ繝シ繝峨Ξ繝薙Η繝シソョ豁」縺励※縺上l繧倶サ慕オ∩繧剃ス懊▲縺歉(/tech/gitea-webhook-ai-review/)
- [SearXNG縺ァ繝ュ繝シ繧ォ繝ォ讀懃エ「API繧呈ァ狗ッ峨☆繧犠(/tech/searxng-local-search/)