Craft Agents is built with agent-native principles in mind. The development setup is straightforward and gets you running in minutes.
Prerequisites
Before you begin, ensure you have the following installed:- Bun runtime (required)
- Node.js 18+ (for some tooling)
- Git
- macOS, Linux, or Windows
Clone the Repository
Install dependencies
Install all project dependencies using Bun:This installs dependencies for all workspaces in the monorepo including:
packages/core- Shared typespackages/shared- Business logicpackages/ui- React componentsapps/electron- Desktop application
Configure environment variables
OAuth integrations (Slack, Microsoft) require credentials baked into the build. Create a Edit the
.env file in the project root:.env file with your credentials:.env
Google OAuth Setup (Optional)
Google OAuth credentials are NOT baked into the build. Users provide their own credentials via source configuration.
Create a Google Cloud Project
- Go to Google Cloud Console
- Create a new project or select an existing one
- Note your Project ID
Enable Required APIs
Navigate to APIs & Services → Library and enable:
- Gmail API (for email integration)
- Google Calendar API (for calendar integration)
- Google Drive API (for file storage)
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 Dev”
- User support email: your email
- Developer contact: your email
- Add yourself as a test user
Project Structure
Understanding the codebase architecture:Development Commands
Debug Logging
Logs are automatically enabled in development mode and written to:- macOS:
~/Library/Logs/@craft-agent/electron/main.log - Windows:
%APPDATA%\@craft-agent\electron\logs\main.log - Linux:
~/.config/@craft-agent/electron/logs/main.log
Next Steps
Building
Learn how to build Craft Agents for production
Guidelines
Review contribution guidelines and best practices