AI Agent Hub
AI エージェント / プラグイン情報メディア
← 一覧へ
gptme
CODEX

gptme

gptme

ローカル PC 上で LLM がシェル・Python・ファイル・ブラウザを直接操作する CLI エージェント。OpenAI / Anthropic / ローカル LLM を切替可能。

原文: Your agent in your terminal, equipped with local tools: writes code, uses the terminal, browses the web. Make your own persistent autonomous agent on top!
#CLI#tool-use#ローカルLLM#agent#agents#ai-agents#ai-assistant#anthropic#chatbot#chatgpt#cli#code-generation
REPO STATS

リポジトリ統計

⭐ Stars
4.3k
🍴 Forks
386
⚠️ Open Issues
23
🌿 Language
Python
📄 License
MIT
🕒 最終更新
2026.05.07 (今日)
📅 公開日
2023.03.25
🌿 Branch
master
README

ドキュメント

— AI による自動翻訳 (2026.05.07 更新)

gptme

/ʤiː piː tiː miː/
何の略ですか?

はじめにダウンロードウェブサイトドキュメント

ビルドステータス ドキュメントビルドステータス Codecov
PyPI バージョン PyPI - 累計ダウンロード数 PyPI - 日次ダウンロード数
Discord X.com
gptme で構築

📜 ターミナルが実行できる場所ならどこでも実行できるパーソナル AI エージェント — ノートパソコン、SSH セッション、tmux、ヘッドレスサーバー、CI パイプライン。
プロバイダに依存しないローカルファースト設計で、制約がありません。シェル、Python、Web、ビジョン、エージェントに必要なすべてを備えています。
優れたコーディングエージェントですが、あらゆる種類のナレッジワークを支援するほど汎用性があります。

無料かつオープンソース。Anthropic、OpenAI、Google、xAI、DeepSeek、OpenRouter、または llama.cpp 経由のフルローカル実行に対応しています — あなたのデータ、あなたのモデル、あなたのターミナル。
Claude Code、Codex、Cursor、Warp に代わる機能豊富なツール — 最初のエージェント CLI の 1 つ(2023 年春)、現在も非常に積極的に開発中です。

📚 目次

📢 ニュース

  • 近日公開予定 - gptme.ai エージェントをクラウドで実行するためのサービス。gptme デスクトップアプリでローカルで簡単に使用できます。
  • 2026-01 - gptme-agent-template v0.4: Bob が 1700 以上の自律セッションに到達、自律実行ループ、強化されたコンテキスト生成
  • 2025-12 - v0.31.0: バックグラウンドジョブ、フォームツール、コスト追跡、コンテンツアドレス指定可能なストレージ
  • 2025-11 - v0.30.0: プラグインシステム、コンテキスト圧縮、サブエージェントプランナーモード
  • 2025-10 - v0.29.0: コンテキストガイダンスのためのレッスンシステム、MCP 検出と動的ロード、トークン認識。Bob が GitHub 監視による自律実行を開始
  • 2025-08 - v0.28.0: MCP サポート、高速編集のための morph ツール、自動コミット、再設計されたサーバー API
  • 2025-03 - v0.27.0: Pre-commit 統合、macOS コンピュータ操作、Claude 3.7 Sonnet、DeepSeek R1、Kokoro によるローカル TTS
  • 2025-01 - gptme-contrib 作成: Twitter/X、Discord ボット、メールツール、コンソーシアム(マルチエージェント)を含むコミュニティプラグイン
  • 2024-12 - gptme-agent-template v0.3: 永続的なエージェント用テンプレート
  • 2024-11 - エコシステム拡張: gptme-webuigptme-raggptme.vimBob 作成(初の自律エージェント)
  • 2024-10 - 最初のバイラルツイートで広く注目を集める
  • 2024-08 - Show HN、Anthropic Claude サポート、tmux ツール
  • 2023-09 - HN での初回公開リリースRedditTwitter
  • 2023-03 - 初回コミット - 初期のエージェント CLI の 1 つ

詳細な履歴については、タイムラインチェンジログを参照してください。

🎥 デモ

注記

以下のスクリーンキャストは 2023 年のものです。gptme はその後、大きく進化しています。最新の例とスクリーンショットについては、ドキュメントを参照してください。自動デモ生成に取り組んでいます:#1554

フィボナッチ数列 curses を使ったヘビゲーム

demo screencast with asciinema

ステップ
  1. 新しいディレクトリ「gptme-test-fib」を作成し、git init を実行する
  2. fib.py に fib 関数を書き込み、コミットする
  3. パブリックリポジトリを作成し、GitHub にプッシュする

621992-resvg

ステップ
  1. curses を使ったヘビゲームを snake.py に作成する
  2. 実行に失敗し、gptme にバグ修正を依頼する
  3. ゲームが実行される
  4. gptme に色を追加するよう依頼する
  5. 小さな問題が発生する
  6. 緑のヘビと赤いリンゴが配置されたゲーム完成!
curses を使った Mandelbrot 集合 URL から質問に答える

mandelbrot-curses

ステップ
  1. mandelbrot_curses.py に curses を使った Mandelbrot 集合をレンダリングする
  2. プログラムが実行される
  3. 色を追加する

superuserlabs-ceo

ステップ
  1. Superuser Labs の CEO が誰かを尋ね、ウェブサイトの URL を渡す
  2. gptme がウェブサイトを閲覧し、正しい答えを返す
ターミナル UI Web UI
機能
  • 強力なターミナルインターフェース
  • 便利な CLI コマンド
  • 差分表示と構文ハイライト
  • タブ補完
  • コマンド履歴
機能
  • ブラウザから gptme とチャットする
  • すべてのツールと機能にアクセス可能
  • モダンでレスポンシブなインターフェース
  • 自分でホストできる
  • chat.gptme.org で利用可能

詳細は、デモドキュメントで確認できます。

🌟 機能

  • 💻 コード実行
    • shellpython ツールを使用して、ローカル環境でコードを実行します。
  • 🧩 ファイルの読み取り、書き込み、変更
    • patch ツールで段階的な変更を行います。
  • 🌐 ウェブの検索と閲覧
    • browser ツールで Playwright 経由のブラウザを使用できます。
  • 👀 ビジョン
    • プロンプトで参照される画像、デスクトップのスクリーンショット、ウェブページを見ることができます。
  • 🔄 自己修正
    • 出力がアシスタントにフィードバックされ、応答と自己修正が可能になります。
  • 📚 レッスンシステム
    • 関連する場合、コンテキストに応じたガイダンスとベストプラクティスが自動的に含まれます。
    • キーワード、ツール、パターンベースのマッチング。
    • インタラクティブモードと自律モードに適応します。
    • 独自のレッスンとスキルで拡張できます。
  • 🤖 多くの LLM プロバイダーに対応
    • Anthropic (Claude)、OpenAI (GPT)、Google (Gemini)、xAI (Grok)、DeepSeek など。
    • OpenRouter で 100+ のモデルにアクセスするか、llama.cpp でローカルにサーブします。
  • 🌐 Web UI と REST API
    • chat.gptme.org のモダンウェブインターフェース (gptme-webui)
    • Python パッケージに含まれるシンプルな組み込み Web UI。
    • REST API を備えたサーバー
    • PyInstaller で利用可能なスタンドアロン実行ファイルビルド。
  • 💻 コンピューター使用 (参考:#216)
    • アシスタントに完全なデスクトップへのアクセスを与え、GUI アプリケーションと対話できるようにします。
  • 🔊 ツールサウンド — さまざまなツール操作に対する心地よい通知音。
    • GPTME_TOOL_SOUNDS=true で有効にします。

🛠 ツール

gptme は AI に充実した組み込みツールセットを備えています:

ツール 説明
shell ターミナルで直接シェルコマンドを実行します
ipython インストール済みライブラリにアクセスできる Python コードを実行します
read ファイルとディレクトリを読み込みます
save / append ファイルを作成または更新します
patch / morph 既存ファイルに段階的な編集を行います
browser Playwright 経由で Web を検索・ナビゲートします
vision 画像を処理・分析します
screenshot デスクトップのスクリーンショットをキャプチャします
rag ローカルファイルからコンテキストを取得します (検索補強生成)
gh GitHub CLI 経由で GitHub と連携します
tmux 永続的なターミナルセッションで長時間実行コマンドを実行します
computer GUI 操作のための完全なデスクトップアクセス
subagent 並列または隔離されたタスク用にサブエージェントを生成します
chats 過去の会話を参照・検索します

会話中に /tools を使用すると、利用可能なすべてのツールと状態が表示されます。

🔌 拡張性: プラグイン、スキル & レッスン

gptme は層状の拡張性システムを備えており、ワークフローに合わせてカスタマイズできます:

プラグイン — Python パッケージ経由でカスタムツール、フック、コマンドで gptme を拡張します:

# gptme.toml
[plugins]
paths = ["~/.config/gptme/plugins", "./plugins"]
enabled = ["my_plugin"]

スキル — 名前で言及されたときに自動読み込みされる軽量ワークフロー バンドル (Anthropic フォーマット)。Python を書かずに再利用可能な指示とヘルパースクリプトをパッケージ化できます。

レッスン — キーワード、ツール、パターンに基づいて会話に自動注入されるコンテキスト ガイダンス。チームのベストプラクティスやドメイン知識をキャプチャするために独自に記述できます。

フック — フル プラグインなしで、主要なライフサイクル イベント (ツール呼び出しの前後、会話開始時など) でカスタム コードを実行します。

gptme-contrib — コミュニティが寄与したプラグイン、パッケージ、スクリプト、レッスン:

プラグイン 説明
gptme-consortium マルチモデル コンセンサス意思決定
gptme-imagen マルチプロバイダー 画像生成
gptme-lsp Language Server Protocol 統合
gptme-ace ACE 着想のコンテキスト最適化
gptme-gupp セッション間での作業状態の永続化

🔗 統合: MCP & ACP

MCP (Model Context Protocol) — 任意の MCP サーバーをツール ソースとして使用します:

pipx install gptme  # MCP support included by default

gptme は MCP サーバーを発見して動的に読み込み、エージェントにデータベース、API、ファイルシステム、その他の MCP 互換ツールへのアクセスを提供できます。サーバー設定については、MCP ドキュメントを参照してください。

ACP (Agent Client Protocol) — エディタから直接 gptme をコーディング エージェントとして使用します:

pipx install 'gptme[acp]'

これにより gptme が Zed および JetBrains IDE でドロップイン コーディング エージェントとして利用可能になります。エディタが要求を送信し、gptme がその完全なツールセット (シェル、ブラウザ、ファイルなど) で実行し、結果をストリーミング バックします。

🤖 自律エージェント

gptmeは対話的に実行するだけでなく、継続的に実行され、すべてを記憶し、時間とともに改善される持続的な自律エージェントとして実行されるように設計されています。gptme-agent-templateは完全なスカフォルディングを提供します:

  • 永続的なワークスペース — ジャーナル、タスク、ナレッジベース、レッスンを備えたgitで追跡される「ブレイン」
  • 実行ループ — スケジュール設定済み(systemd/launchd)またはイベント駆動の自律操作
  • タスク管理 — YAMLメタデータとGTDスタイルのワークフローを備えた構造化タスクキュー
  • メタラーニング — レッスンシステムは行動パターンをキャプチャし、時間とともに改善されます
  • マルチエージェント調整 — 同時実行エージェント用のファイルリース、メッセージバス、ワーク要求
  • 外部統合 — GitHub、メール、Discord、Twitter、RSS、その他
# Create and run your own agent
gptme-agent create ~/my-agent --name MyAgent
gptme-agent install   # runs on a schedule
gptme-agent status    # check on it

Bobは参考実装です — 2024年後半から継続的に実行されている本番の自律エージェントです。Bobはプルリクエストを開き、コードをレビューし、CIを修正し、独自のタスクキューを管理し、増加する行動レッスンのセットを維持し、Twitterに投稿し、Discordで応答し、ブログ投稿を作成します。

複数の専門エージェントが並列で実行できます — 例えば、Bob(エンジニアリング)とAlice(個人アシスタント&オーケストレーション)— 共有インフラストラクチャを通じて調整します。

自律エージェントドキュメントを参照して完全なガイドをご覧ください。

🛡 ガードレール

永続的なエージェントは、ツール権限だけでなく、完全なループの周りにガードレールが必要です:

  • 入力ガードレール — エージェントワークスペースの構造化タスクセレクタは、作業を焦点を絞った状態に保ち、通知または曖昧な作業による浪費を減らします。Bobはこのレイヤーに対してCASCADEスタイルのセレクタを使用します。
  • 事前アクションガードレールレッスンはエージェントが行動する前に状況に応じた指導を注入します。
  • 出力ガードレールフック事前コミットチェックは、制御がユーザーに戻される前にファイル変更を検証します。

このスタックはシンプルで構成可能です:セレクタは作業選択を改善し、レッスンは行動を導き、チェックは結果を検証します。後で上にevalsを追加することはできますが、基本的なガードレールループはすでに存在します。

🛠 ユースケース

  • 🖥 開発: AIアシスタンスを使用してコードをより迅速に記述して実行します。
  • 🎯 シェルエキスパート: 自然言語を使用して正しいコマンドを取得します(もうフラグを暗記する必要はありません!)。
  • 📊 データ分析: ターミナルでデータを直接処理および分析します。
  • 🎓 インタラクティブラーニング: 新しいテクノロジーまたはコードベースを実際に試してください。
  • 🤖 エージェントとツール: 実務用の長期実行自律エージェントを構築します。
  • 🔬 リサーチ:

— GitHub から取得した原文(一部省略の場合あり)

gptme

/ʤiː piː tiː miː/
what does it stand for?

Getting StartedDownloadsWebsiteDocumentation

Build Status Docs Build Status Codecov
PyPI version PyPI - Downloads all-time PyPI - Downloads per day
Discord X.com
Powered by gptme

📜 A personal AI agent that runs anywhere a terminal runs — your laptop, ssh sessions, tmux, headless servers, CI pipelines.
Provider-agnostic, local-first, and unconstrained: ships with shell, Python, web, vision, and everything else an agent needs.
A great coding agent, but general-purpose enough to assist in all kinds of knowledge-work.

Free and open-source. Works with Anthropic, OpenAI, Google, xAI, DeepSeek, OpenRouter, or fully local via llama.cpp — your data, your models, your terminal.
A capable alternative to Claude Code, Codex, Cursor, and Warp — one of the first agent CLIs (Spring 2023), still in very active development.

📚 Table of Contents

📢 News

  • Coming soon - gptme.ai service for running agents in the cloud; gptme desktop app for easy local use.
  • 2026-01 - gptme-agent-template v0.4: Bob reaches 1700+ autonomous sessions, autonomous run loops, enhanced context generation
  • 2025-12 - v0.31.0: Background jobs, form tool, cost tracking, content-addressable storage
  • 2025-11 - v0.30.0: Plugin system, context compression, subagent planner mode
  • 2025-10 - v0.29.0: Lessons system for contextual guidance, MCP discovery & dynamic loading, token awareness; Bob begins autonomous runs with GitHub monitoring
  • 2025-08 - v0.28.0: MCP support, morph tool for fast edits, auto-commit, redesigned server API
  • 2025-03 - v0.27.0: Pre-commit integration, macOS computer use, Claude 3.7 Sonnet, DeepSeek R1, local TTS with Kokoro
  • 2025-01 - gptme-contrib created: community plugins including Twitter/X, Discord bot, email tools, consortium (multi-agent)
  • 2024-12 - gptme-agent-template v0.3: Template for persistent agents
  • 2024-11 - Ecosystem expansion: gptme-webui, gptme-rag, gptme.vim, Bob created (first autonomous agent)
  • 2024-10 - First viral tweet bringing widespread attention
  • 2024-08 - Show HN, Anthropic Claude support, tmux tool
  • 2023-09 - Initial public release on HN, Reddit, Twitter
  • 2023-03 - Initial commit - one of the first agent CLIs

For more history, see the Timeline and Changelog.

🎥 Demos

Note

The screencasts below are from 2023. gptme has evolved a lot since then! For up-to-date examples and screenshots, see the Documentation. We're working on automated demo generation: #1554.

Fibonacci Snake with curses

demo screencast with asciinema

Steps
  1. Create a new dir 'gptme-test-fib' and git init
  2. Write a fib function to fib.py, commit
  3. Create a public repo and push to GitHub

621992-resvg

Steps
  1. Create a snake game with curses to snake.py
  2. Running fails, ask gptme to fix a bug
  3. Game runs
  4. Ask gptme to add color
  5. Minor struggles
  6. Finished game with green snake and red apple pie!
Mandelbrot with curses Answer question from URL

mandelbrot-curses

Steps
  1. Render mandelbrot with curses to mandelbrot_curses.py
  2. Program runs
  3. Add color

superuserlabs-ceo

Steps
  1. Ask who the CEO of Superuser Labs is, passing website URL
  2. gptme browses the website, and answers correctly
Terminal UI Web UI
Features
  • Powerful terminal interface
  • Convenient CLI commands
  • Diff & Syntax highlighting
  • Tab completion
  • Command history
Features
  • Chat with gptme from your browser
  • Access to all tools and features
  • Modern, responsive interface
  • Self-hostable
  • Available at chat.gptme.org

You can find more Demos and Examples in the documentation.

🌟 Features

  • 💻 Code execution
    • Executes code in your local environment with the shell and python tools.
  • 🧩 Read, write, and change files
    • Makes incremental changes with the patch tool.
  • 🌐 Search and browse the web
    • Can use a browser via Playwright with the browser tool.
  • 👀 Vision
    • Can see images referenced in prompts, screenshots of your desktop, and web pages.
  • 🔄 Self-correcting
    • Output is fed back to the assistant, allowing it to respond and self-correct.
  • 📚 Lessons system
    • Contextual guidance and best practices automatically included when relevant.
    • Keyword, tool, and pattern-based matching.
    • Adapts to interactive vs autonomous modes.
    • Extend with your own lessons and skills.
  • 🤖 Support for many LLM providers
    • Anthropic (Claude), OpenAI (GPT), Google (Gemini), xAI (Grok), DeepSeek, and more.
    • Use OpenRouter for access to 100+ models, or serve locally with llama.cpp.
  • 🌐 Web UI and REST API
    • Modern web interface at chat.gptme.org (gptme-webui)
    • Simple built-in web UI included in the Python package.
    • Server with REST API.
    • Standalone executable builds available with PyInstaller.
  • 💻 Computer use (see #216)
    • Give the assistant access to a full desktop, allowing it to interact with GUI applications.
  • 🔊 Tool sounds — pleasant notification sounds for different tool operations.
    • Enable with GPTME_TOOL_SOUNDS=true.

🛠 Tools

gptme equips the AI with a rich set of built-in tools:

Tool Description
shell Execute shell commands directly in your terminal
ipython Run Python code with access to your installed libraries
read Read files and directories
save / append Create or update files
patch / morph Make incremental edits to existing files
browser Search and navigate the web via Playwright
vision Process and analyze images
screenshot Capture screenshots of your desktop
rag Retrieve context from local files (Retrieval Augmented Generation)
gh Interact with GitHub via the GitHub CLI
tmux Run long-lived commands in persistent terminal sessions
computer Full desktop access for GUI interactions
subagent Spawn sub-agents for parallel or isolated tasks
chats Reference and search past conversations

Use /tools during a conversation to see all available tools and their status.

🔌 Extensibility: Plugins, Skills & Lessons

gptme has a layered extensibility system that lets you tailor it to your workflow:

Plugins — extend gptme with custom tools, hooks, and commands via Python packages:

# gptme.toml
[plugins]
paths = ["~/.config/gptme/plugins", "./plugins"]
enabled = ["my_plugin"]

Skills — lightweight workflow bundles (Anthropic format) that auto-load when mentioned by name. Great for packaging reusable instructions and helper scripts without writing Python.

Lessons — contextual guidance that auto-injects into conversations based on keywords, tools, and patterns. Write your own to capture team best-practices or domain knowledge.

Hooks — run custom code at key lifecycle events (before/after tool calls, on conversation start, etc.) without a full plugin.

gptme-contrib — community-contributed plugins, packages, scripts, and lessons:

Plugin Description
gptme-consortium Multi-model consensus decision-making
gptme-imagen Multi-provider image generation
gptme-lsp Language Server Protocol integration
gptme-ace ACE-inspired context optimization
gptme-gupp Work state persistence across sessions

🔗 Integrations: MCP & ACP

MCP (Model Context Protocol) — use any MCP server as a tool source:

pipx install gptme  # MCP support included by default

gptme can discover and dynamically load MCP servers, giving the agent access to databases, APIs, file systems, and any other MCP-compatible tool. See the MCP docs for server configuration.

ACP (Agent Client Protocol) — use gptme as a coding agent directly from your editor:

pipx install 'gptme[acp]'

This makes gptme available as a drop-in coding agent in Zed and JetBrains IDEs. Your editor sends requests, gptme executes with its full toolset (shell, browser, files, etc.) and streams results back.

🤖 Autonomous Agents

gptme is designed to run not just interactively but as a persistent autonomous agent — an AI that runs continuously, remembers everything, and gets better over time. The gptme-agent-template provides a complete scaffold:

  • Persistent workspace — git-tracked "brain" with journal, tasks, knowledge base, and lessons
  • Run loops — scheduled (systemd/launchd) or event-driven autonomous operation
  • Task management — structured task queue with YAML metadata and GTD-style workflows
  • Meta-learning — lessons system captures behavioral patterns and improves over time
  • Multi-agent coordination — file leases, message bus, and work claiming for concurrent agents
  • External integrations — GitHub, email, Discord, Twitter, RSS, and more
# Create and run your own agent
gptme-agent create ~/my-agent --name MyAgent
gptme-agent install   # runs on a schedule
gptme-agent status    # check on it

Bob is the reference implementation — a production autonomous agent that's been running continuously since late 2024. Bob opens PRs, reviews code, fixes CI, manages his own task queue, maintains a growing set of behavioral lessons, posts on Twitter, responds on Discord, and writes blog posts.

Multiple specialized agents can run in parallel — e.g. Bob (engineering) and Alice (personal assistant & orchestration) — coordinating through shared infrastructure.

See the Autonomous Agents docs for the full guide.

🛡 Guardrails

Persistent agents need guardrails around the full loop, not just tool permissions:

  • Input guardrails — structured task selectors in the agent workspace keep work focused and reduce thrashing on notifications or ambiguous work. Bob uses a CASCADE-style selector for this layer.
  • Pre-action guardrailslessons inject situational guidance before the agent acts.
  • Output guardrailshooks and pre-commit checks validate file changes before control returns to the user.

This stack is simple and composable: selectors improve work choice, lessons steer behavior, and checks verify the result. You can add evals on top later, but the baseline guardrail loop already exists.

🛠 Use Cases

  • 🖥 Development: Write and run code faster with AI assistance.
  • 🎯 Shell Expert: Get the right command using natural language (no more memorizing flags!).
  • 📊 Data Analysis: Process and analyze data directly in your terminal.
  • 🎓 Interactive Learning: Experiment with new technologies or codebases hands-on.
  • 🤖 Agents & Tools: Build long-running autonomous agents for real work.
  • 🔬 Research:
RELATED

同じカテゴリの他のツール

AI Agent Hub — AIエージェント / プラグイン情報メディア
日本語訳は AI による自動生成(参考用)。正確な情報は原文を確認してください。