THU Agent by CyberCraze
THU CyberCraze Agent
THUラボプロキシ(OpenAI互換API)を利用したインタラクティブなターミナルコーディングエージェントです。現在のターミナルで動作し、現在のディレクトリ内で作業を行い、ファイルの検査やシェルコマンドの提案を行い、実行前にユーザーの承認を待ちます。
1. インストール
1.1 APIキーの取得
こちらからキーを作成してください:
https://lab.cs.tsinghua.edu.cn/ai-platform/c/newベースURL:
https://lab.cs.tsinghua.edu.cn/ai-platform/api/v1環境変数の設定:
export THU_LAB_PROXY_API_KEY='your_proxy_key_here'
export THU_LAB_PROXY_BASE_URL='https://lab.cs.tsinghua.edu.cn/ai-platform/api/v1'Windows PowerShellの場合:
$env:THU_LAB_PROXY_API_KEY='your_proxy_key_here'
$env:THU_LAB_PROXY_BASE_URL='https://lab.cs.tsinghua.edu.cn/ai-platform/api/v1'エージェントを起動して、プロンプトが表示されたときにキーを貼り付けることもできます。エージェントはキーをユーザーごとのグローバル設定ファイルに保存します:
LinuxおよびmacOS:
~/.thu-cybercraze-agent/.envWindows:
%USERPROFILE%\.thu-cybercraze-agent\.env
1.2 エージェントの実行
Linux(ビルド済みバイナリ):
./dist/thu-agentWindows(Windows上でビルド):
.\dist\thu-agent.exemacOS(Pythonを直接実行):
python3 agent.py1.3 バイナリのビルド(必要な場合)
Linuxビルド:
bash build_agent.sh結果:
dist/thu-agentWindowsビルド(WSL内ではなくWindows上で実行):
py -3 -m pip install pyinstaller
powershell -ExecutionPolicy Bypass -File .\build_agent_windows.ps1結果:
dist\thu-agent.exe1.4 オプション:グローバル実行
Linux:
sudo install -m 755 dist/thu-agent /usr/local/bin/thu-agentWindows:リポジトリの dist ディレクトリを PATH に追加するか、.exe を既に PATH にあるディレクトリにコピーします。
例(PowerShell):
[Environment]::SetEnvironmentVariable(
"Path",
$env:Path + ";C:\Users\USER\Downloads\THU-deepseek-glm-api-mcp-server\dist",
"User"
)新しいターミナルを開いて実行:
thu-agent.exeRelated MCP server: firepass-mcp
2. 使用方法
エージェントの起動:
./dist/thu-agentまたはPythonで実行:
python3 agent.pyモデルとキーを直接渡すことも可能です:
python3 agent.py --model deepseek-v3.2 --api-key "$THU_LAB_PROXY_API_KEY"デフォルトモデル:
deepseek-v3.2現在のモデル:
qwen3-max-thinkingqwen3-maxglm-5glm-5-thinkingglm-4.7-thinkingkimi-k2.5kimi-k2.5-thinkingminimax-m2.5minimax-m2.5-thinkingqwen3.5-plusqwen3.5-plus-thinkingqwen3.5-minideepseek-v3.2-thinkingdeepseek-v3.2
エージェントが思考中またはコマンド実行中に Ctrl+C を押すと中断できます。フォローアップの指示を求められるので、中断されたターンを破棄する場合は /stop と入力するか、新しい指示を入力して続行してください。
3. 機能一覧
利用可能なスラッシュコマンド:
/help/save [name]/autosave/context/compact [keep]/clear/status/attach <path> [instruction]/stop/sessions/load <id|name>/fork <id|name> [new-name]/new [name]/delete <id|name>/update/model/key/pwd/alwaysRun/exit
4. 機能説明
セッションとメモリ:
/save [name]現在のセッションをディスクに保存します。セッションはデフォルトで手動保存です。/autosaveこのセッションの自動保存を切り替えます。/sessions保存されたセッションをID、概要、最終使用時間とともに一覧表示します。/load <id|name>保存されたセッションを読み込みます。/fork <id|name> [new-name]保存されたセッションから新しいセッションを作成します。/new [name]新しいコンテキストで新しいセッションを開始します。/delete <id|name>保存されたセッションを削除します。
コンテキスト管理:
/contextスタートアップコンテキストのスナップショット(日付、gitステータス、AGENTS.mdやCLAUDE.mdなどの近くのメモリファイル)を更新して表示します。/compact [keep]古いメッセージを要約し、最近のターンを保持してコンテキストサイズを削減します。/clear現在のプロジェクトコンテキストを保持したまま、メモリ内の会話をクリアします。/statusバージョン、モデル、セッション名、自動保存状態、メッセージ数、コンテキストサイズを表示します。
コマンドと実行:
/alwaysRunシェルコマンドの自動承認を切り替えます。/stop中断プロンプトの後にのみ使用され、中断されたターンを破棄します。
添付ファイル:
/attach path/to/file.txt explain this file小さなテキスト/コードファイルを次のモデルターンにインラインで挿入します。テキスト以外のファイルは、エージェントがコマンドで検査するためのファイル参照として渡されます。
画像ファイルは、選択したモデル/プロキシがサポートしており、かつ
THU_AGENT_MULTIMODAL=1が設定されている場合にのみマルチモーダルコンテンツとして送信されます。それ以外の場合はファイル参照として扱われます。
モデルとキー:
/modelモデルを再選択します(これにより会話コンテキストがリセットされます)。/keyAPIキーを更新し、グローバルな.envに保存します。
アップデート:
起動時に、エージェントは埋め込まれたバージョンとGitHubの
VERSIONファイルを比較し、古い場合に通知します。/updateGitHubリポジトリを一時ディレクトリにクローンし、バイナリを再ビルドし、現在の実行可能パス(またはLinuxでは/usr/local/bin/thu-agent)にインストールしてから、一時クローンを削除します。Windowsでは、実行中の.exeの終了後の置き換えを予約します。
その他:
/pwd現在の作業ディレクトリを表示します。/helpコマンドリストを表示します。/exitエージェントを終了します。
注意:
server.pyのMCPサーバーは、agent.pyのインタラクティブエージェントとは別物です。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceA transport-agnostic MCP server that integrates multiple AI coding agents (Claude Code, Gemini, and Codex) with built-in tools for command execution, calculations, and streaming capabilities. Supports both STDIO and HTTP transports for flexible deployment.101MIT
- AlicenseAqualityAmaintenanceMCP server that turns Kimi K2.6 Turbo into an agentic coding assistant with tools for file operations, shell commands, and code search.42MIT
- AlicenseNot gradedqualityDmaintenanceA multi-agent MCP server that enables AI coding agents (Claude Code, Codex CLI, Gemini CLI) to communicate with each other.MIT
- FlicenseAqualityBmaintenanceA universal MCP server that provides AI agents with structured tools for filesystem, database, shell, and git operations, enabling seamless interaction with projects.19
Related MCP Connectors
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
An MCP server that gives your AI access to the source code and docs of all public github repos
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/cybercrazetech/THU-deepseek-glm-api-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server