🚀 AI-Toolkit:AI 开发者的终极统一管控台。 🛠️ 集中管理:一站式管理你的 Skills 与 MCP 服务。 👥 多账号协同:无缝切换 WorkBuddy、Trae、Qoder 、Minimax Code多平台账号。 🪙 自动薅羊毛:定时自动领取平台积分,拒绝资源浪费。 🌉 模型代理网关:聚合四家主流大模型,为第三方工具提供统一 API 代理。告别上下文切换,专注高效构建。⚡️

Craft Agents
By craft-ai-agents
It uses the Claude Agent SDK and the Pi SDK side by side—building on what we found great and improving areas where we've desired improvements.
- Views
- 7
- Repository stars
- 7,342
- Platforms
- Windows, macOS, Linux
- Workspace
- Desktop
Use cases
- Multi-Session Inbox : Desktop app with session management, status workflow, and flagging
- Claude Code Experience : Streaming responses, tool visualization, real-time updates
- Multiple LLM Connections : Add multiple AI providers and set per-workspace defaults
- Multi-Provider Support : Run sessions with Google AI Studio, ChatGPT Plus, GitHub Copilot, or OpenAI API keys alongside Anthropic
- Craft MCP Integration : Access to 32+ Craft document tools (blocks, collections, search, tasks)
- Sources : Connect to MCP servers, REST APIs (Google, Slack, Microsoft), and local filesystems
- Permission Modes : Three-level system (Explore, Ask to Edit, Auto) with customizable rules
- Background Tasks : Run long-running operations with progress tracking
- Dynamic Status System : Customizable session workflow states (Todo, In Progress, Done, etc.)
- Theme System : Cascading themes at app and workspace levels
- Multi-File Diff : VS Code-style window for viewing all file changes in a turn
- Skills : Specialized agent instructions stored per-workspace
- File Attachments : Drag-drop images, PDFs, Office documents with auto-conversion
- Automations : Event-driven automation — create agent sessions on label changes, schedules, tool use, and more
Platforms
Windows, macOS, Linux
Configuration guide
- Go to APIs & Services → OAuth consent screen
- Select External user type (unless you have Google Workspace)
- Fill in required fields:
- App name: e.g., "My Craft Agent"
- User support email: your email
- Developer contact: your email
- Add scopes (optional - can leave default)
- Add yourself as a test user (required for External apps in testing mode)
- Complete the wizard
When setting up a Google source (Gmail, Calendar, Drive, YouTube, Search Console, etc.), add these fields to your source's config.json:
{
"api": {
"googleService": "gmail",
"googleOAuthClientId": "your-client-id.apps.googleusercontent.com",
"googleOAuthClientSecret": "your-client-secret"
}
}
Or simply tell the agent you want to connect Gmail/Calendar/Drive - it will guide you through entering your credentials.
Configuration is stored at ~/.craft-agent/:
~/.craft-agent/
├── config.json # Main config (workspaces, LLM connections)
├── credentials.enc # Encrypted credentials (AES-256-GCM)
├── preferences.json # User preferences
├── theme.json # App-level theme
└── workspaces/
└── {id}/
├── config.json # Workspace settings
├── theme.json # Workspace theme override
├── automations.json # Event-driven automations
├── sessions/ # Session data (JSONL)
├── sources/ # Connected sources
├── skills/ # Custom skills
└── statuses/ # Status configuration
When spawning local MCP servers (stdio transport), sensitive environment variables are filtered out to prevent credential leakage to subprocesses. Blocked variables include:
ANTHROPIC_API_KEY,CLAUDE_CODE_OAUTH_TOKEN(app auth)AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY,AWS_SESSION_TOKENGITHUB_TOKEN,GH_TOKEN,OPENAI_API_KEY,GOOGLE_API_KEY,STRIPE_SECRET_KEY,NPM_TOKEN
To explicitly pass an env var to a specific MCP server, use the env field in the source config.
To report security vulnerabilities, please see SECURITY.md.
Why Craft Agents was built
Craft Agents is a tool we built so that we (at craft.do) can work effectively with agents. It enables intuitive multitasking, no-fluff connection to any API or Service, sharing sessions, and a more document (vs code) centric workflow - in a beautiful and fluid UI.
It uses the Claude Agent SDK and the Pi SDK side by side—building on what we found great and improving areas where we've desired improvements.
It's built with Agent Native software principles in mind, and is highly customisable out of the box. One of the first of its kind.
Craft Agents is open source under the Apache 2.0 license - so you are free to remix, change anything. And that's actually possible. We ourselves are building Craft Agents with Craft Agents only - no code editors - so really, any customisation is just a prompt away.
We built Craft Agents because we wanted a better, more opinionated (and preferably non-CLI way) of working with the most powerful agents in the world. We'll continue to improve it, based on our experiences and intuition.
One-Line Install (Recommended)
macOS / Linux:
curl -fsSL https://thecraftagents.com/install-app.sh | bash
Windows (PowerShell):
irm https://thecraftagents.com/install-app.ps1 | iex
Features
- Multi-Session Inbox: Desktop app with session management, status workflow, and flagging
- Claude Code Experience: Streaming responses, tool visualization, real-time updates
- Multiple LLM Connections: Add multiple AI providers and set per-workspace defaults
- Multi-Provider Support: Run sessions with Google AI Studio, ChatGPT Plus, GitHub Copilot, or OpenAI API keys alongside Anthropic
- Craft MCP Integration: Access to 32+ Craft document tools (blocks, collections, search, tasks)
- Sources: Connect to MCP servers, REST APIs (Google, Slack, Microsoft), and local filesystems
- Permission Modes: Three-level system (Explore, Ask to Edit, Auto) with customizable rules
- Background Tasks: Run long-running operations with progress tracking
- Dynamic Status System: Customizable session workflow states (Todo, In Progress, Done, etc.)
- Theme System: Cascading themes at app and workspace levels
- Multi-File Diff: VS Code-style window for viewing all file changes in a turn
- Skills: Specialized agent instructions stored per-workspace
- File Attachments: Drag-drop images, PDFs, Office documents with auto-conversion
- Automations: Event-driven automation — create agent sessions on label changes, schedules, tool use, and more
Quick Start
- Launch the app after installation
- Choose API Connection: Use Anthropic (API key or Claude Max), Google AI Studio, ChatGPT Plus (Codex OAuth), or GitHub Copilot OAuth
- Create a workspace: Set up a workspace to organize your sessions
- Connect sources (optional): Add MCP servers, REST APIs, or local filesystems
- Start chatting: Create sessions and interact with Claude
Session Management
- Inbox/Archive: Sessions organized by workflow status
- Flagging: Mark important sessions for quick access
- Status Workflow: Todo → In Progress → Needs Review → Done
- Session Naming: AI-generated titles or manual naming
- Session Persistence: Full conversation history saved to disk
Sources
Connect external data sources to your workspace:
| Type | Examples |
|---|---|
| MCP Servers | Craft, Linear, GitHub, Notion, custom servers |
| REST APIs | Google (Gmail, Calendar, Drive, YouTube, Search Console), Slack, Microsoft |
| Local Files | Filesystem, Obsidian vaults, Git repos |
Permission Modes
| Mode | Display | Behavior |
|---|---|---|
safe |
Explore | Read-only, blocks all write operations |
ask |
Ask to Edit | Prompts for approval (default) |
allow-all |
Auto | Auto-approves all commands |
Use SHIFT+TAB to cycle through modes in the chat interface.
Keyboard Shortcuts
| Shortcut | Action |
|---|---|
Cmd+N |
New chat |
Cmd+1/2/3 |
Focus sidebar/list/chat |
Cmd+/ |
Keyboard shortcuts dialog |
SHIFT+TAB |
Cycle permission modes |
Enter |
Send message |
Shift+Enter |
New line |
Quick Start
From the monorepo root:
# Generate a token and start the server
CRAFT_SERVER_TOKEN=$(openssl rand -hex 32) bun run packages/server/src/index.ts
The server prints the connection details on startup:
CRAFT_SERVER_URL=ws://203.0.113.5:9100
CRAFT_SERVER_TOKEN=<generated-token>
Copy these values and use them to connect the desktop app.
Installation
# From the monorepo (requires Bun)
bun run apps/cli/src/index.ts --help
# Or add to your PATH
alias craft-cli="bun run $(pwd)/apps/cli/src/index.ts"
Google OAuth Setup (Gmail, Calendar, Drive, YouTube, Search Console)
Google integrations require you to create your own OAuth credentials. This is a one-time setup.
1. Create a Google Cloud Project
- Go to Google Cloud Console
- Create a new project (or select an existing one)
- Note your Project ID
2. Enable Required APIs
Go to APIs & Services → Library and enable the APIs you need:
- Gmail API - for email integration
- Google Calendar API - for calendar integration
- Google Drive API - for file storage integration
3. Configure OAuth Consent Screen
- Go to APIs & Services → OAuth consent screen
- Select External user type (unless you have Google Workspace)
- Fill in required fields:
- App name: e.g., "My Craft Agent"
- User support email: your email
- Developer contact: your email
- Add scopes (optional - can leave default)
- Add yourself as a test user (required for External apps in testing mode)
- Complete the wizard
4. Create OAuth Credentials
- Go to APIs & Services → Credentials
- Click Create Credentials → OAuth Client ID
- Application type: Web application (not "Desktop app" — Craft Agent routes every OAuth flow through a hosted callback, which a Desktop-app client rejects with
redirect_uri_mismatch) - Name: e.g., "Craft Agent"
- Under Authorized redirect URIs, add:
https://thecraftagents.com/auth/callback - Click Create
- Note the Client ID and Client Secret
5. Configure in Craft Agent
When setting up a Google source (Gmail, Calendar, Drive, YouTube, Search Console, etc.), add these fields to your source's config.json:
{
"api": {
"googleService": "gmail",
"googleOAuthClientId": "your-client-id.apps.googleusercontent.com",
"googleOAuthClientSecret": "your-client-secret"
}
}
Or simply tell the agent you want to connect Gmail/Calendar/Drive - it will guide you through entering your credentials.
Security Notes
- Your OAuth credentials are stored encrypted alongside other source credentials
- Never commit credentials to version control
- For production use, consider getting your OAuth consent screen verified by Google
Supported LLM Providers
Craft Agents supports multiple ways to connect to LLM providers:
Direct Connections
| Provider | Auth | Notes |
|---|---|---|
| Anthropic | API key or Claude Max/Pro OAuth | Direct Claude connection via the Claude Agent SDK |
| Google AI Studio | API key | Gemini models with native Google Search grounding built in |
| ChatGPT Plus / Pro | Codex OAuth | Sign in with your ChatGPT subscription — uses OpenAI's Codex models |
| GitHub Copilot | OAuth (device code) | One-click authentication with your Copilot subscription |
Third-Party & Self-Hosted Providers
Additional providers are supported through the Claude / Anthropic API Key connection by choosing a custom endpoint:
| Provider | Endpoint | Notes |
|---|---|---|
| OpenRouter | https://openrouter.ai/api |
Access Claude, GPT, Llama, Gemini, and hundreds of other models through a single API key. Use provider/model-name format (e.g. anthropic/claude-opus-4.7). |
| Vercel AI Gateway | https://ai-gateway.vercel.sh |
Route requests through Vercel's AI Gateway with built-in observability and caching. |
| Ollama | http://localhost:11434 |
Run open-source models locally. No API key required. |
| Custom | Any URL | Any OpenAI-compatible or Anthropic-compatible endpoint. |
Architecture
Craft Agents uses two agent backends:
- Claude — powered by the Claude Agent SDK, which natively supports custom base URLs and provider routing. Anthropic API key, Claude Max/Pro OAuth, and all third-party endpoints use this backend.
- Pi — powered by the Pi SDK, which handles Google AI Studio, ChatGPT Plus (Codex OAuth), GitHub Copilot OAuth, and OpenAI API key connections. Pi connections route through their own provider infrastructure.
Configuration
Configuration is stored at ~/.craft-agent/:
~/.craft-agent/
├── config.json # Main config (workspaces, LLM connections)
├── credentials.enc # Encrypted credentials (AES-256-GCM)
├── preferences.json # User preferences
├── theme.json # App-level theme
└── workspaces/
└── {id}/
├── config.json # Workspace settings
├── theme.json # Workspace theme override
├── automations.json # Event-driven automations
├── sessions/ # Session data (JSONL)
├── sources/ # Connected sources
├── skills/ # Custom skills
└── statuses/ # Status configuration
Automations
Automations let you automate workflows by triggering actions when events happen — labels change, sessions start, tools run, or on a cron schedule.
Just ask the agent:
- "Set up a daily standup briefing every weekday at 9am"
- "Notify me when a session is labelled urgent"
- "Track permission mode changes and summarise them"
- "Every Friday at 5pm, summarise this week's completed tasks"
Or configure manually in ~/.craft-agent/workspaces/{id}/automations.json:
{
"version": 2,
"automations": {
"SchedulerTick": [
{
"cron": "0 9 * * 1-5",
"timezone": "America/New_York",
"labels": ["Scheduled"],
"actions": [
{ "type": "prompt", "prompt": "Check @github for new issues assigned to me" }
]
}
],
"LabelAdd": [
{
"matcher": "^urgent$",
"actions": [
{ "type": "prompt", "prompt": "An urgent label was added. Triage the session and summarise what needs attention." }
]
}
]
}
}
Prompt actions create a new agent session with a prompt. They support @mentions for sources and skills, and environment variables like $CRAFT_LABEL and $CRAFT_SESSION_ID are expanded automatically.
Supported events: LabelAdd, LabelRemove, PermissionModeChange, FlagChange, SessionStatusChange, SchedulerTick, PreToolUse, PostToolUse, SessionStart, SessionEnd, and more.
See the Automations documentation for the full reference.
Large Response Handling
Tool responses exceeding ~60KB are automatically summarized using Claude Haiku with intent-aware context. The _intent field is injected into MCP tool schemas to preserve summarization focus.
Deep Linking
External apps can navigate using craftagents:// URLs:
craftagents://allSessions # All sessions view
craftagents://allSessions/session/session123 # Specific session
craftagents://settings # Settings
craftagents://sources/source/github # Source info
craftagents://action/new-chat # Create new session
Local MCP Server Isolation
When spawning local MCP servers (stdio transport), sensitive environment variables are filtered out to prevent credential leakage to subprocesses. Blocked variables include:
ANTHROPIC_API_KEY,CLAUDE_CODE_OAUTH_TOKEN(app auth)AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY,AWS_SESSION_TOKENGITHUB_TOKEN,GH_TOKEN,OPENAI_API_KEY,GOOGLE_API_KEY,STRIPE_SECRET_KEY,NPM_TOKEN
To explicitly pass an env var to a specific MCP server, use the env field in the source config.
To report security vulnerabilities, please see SECURITY.md.
The Private Agent OS — search files, run AI agents, connect to 10,000+ tools via the complete protocol stack (MCP, AG-UI, A2UI, A2A). Zero…
基于MCP(Model Context Protocol)的智能聊天应用,支持Web和桌面环境。集成OpenAI/Anthropic API,提供MCP服务器的所有工具能力。简洁现代的UI设计,支持跨平台部署。
