theo init 會通過以下步驟在你的項目中設置 Theo:
- 創建
theo.config.json—— 項目級配置,包含角色、技能和默認模式 - 檢測已安裝的 IDE —— Cursor、Claude Code、Warp、Windsurf、VS Code
- 寫入 MCP 配置 —— 為每個檢測到的 IDE 生成正確的 JSON(參見 MCP / Overview)
- 生成
.theo/RULES.md—— 上下文文件,讓 IDE 智能體瞭解如何使用 Theo
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Welcome to Theo Docs — the AI orchestration API.
在項目中初始化 Theo——創建配置、檢測 IDE、寫入 MCP 配置。
theo init [directory]
theo init 會通過以下步驟在你的項目中設置 Theo:
theo.config.json —— 項目級配置,包含角色、技能和默認模式.theo/RULES.md —— 上下文文件,讓 IDE 智能體瞭解如何使用 Theo$ theo init
[theo] Initializing Theo in this project...
[theo] ✓ Created theo.config.json
[theo] Detecting IDEs...
[theo] Found: Cursor, Warp
[theo] Writing MCP configurations...
[theo] ✓ Cursor: .cursor/mcp.json
[theo] ✓ Warp: .warp/mcp.json
[theo] Generating agent context...
[theo] ✓ Created .theo/RULES.md
[theo] ✅ Theo initialized!
{
"persona": "You are an AI assistant for the my-project project.",
"skills": [],
"defaultMode": "auto"
}
{
"mcpServers": {
"theo": {
"command": "npx",
"args": ["-y", "@hitheo/mcp"],
"env": { "THEO_API_KEY": "${env:THEO_API_KEY}" }
}
}
}
這個頁面有幫助嗎?
