Quick Start
Get Clotion running in under 5 minutes
Quick Start
Get Clotion running in under 5 minutes with this quick setup guide.
1. Clone and Install
# 1. Clone the repository
git clone https://github.com/ianborders/clotion.git
cd clotion
# 2. Install the clotion command
pip install clotion
# 3. Create your config
cp .env.example .env
Updating
To update to the latest version:
pip install -U clotion
2. Set Up Notion Integration
Create an Integration
- Go to notion.so/my-integrations
- Click + New integration
- Give it a name like "Clotion"
- Select your workspace
- Under Capabilities, enable: Read, Update, Insert content
- Copy the Internal Integration Token (starts with
secret_orntn_)
Share Your Database
- Open your Notion database (the one you'll use for tasks)
- Click the ... menu in the top right
- Click Add connections
- Search for and select your "Clotion" integration
Find Your Database ID
The database ID is in the URL when viewing your database as a full page:
https://notion.so/workspace/abc123def456789012345678901234?v=...
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This is your database ID (32 chars)
Tip: If your database is inline on a page, click ... → Open as full page first.
3. Set Up Your Database Status
Your database needs a Status property with these options (case-sensitive):
| Status | Purpose |
|---|---|
Backlog | Tasks waiting to be picked up |
ToDo | Triggers Clotion to start working |
In Progress | Currently being worked on |
In Review | PR created, awaiting review |
Done | Triggers PR merge |
Important: Status names must match exactly.
ToDois not the same asTodoorTo Do.
4. Configure
Edit .env with your values:
# Required
NOTION_API_KEY=secret_xxxxxxxxxxxxx
NOTION_DATABASE_ID=abc123def456789012345678901234
REPO_PATH=/path/to/your/repo
# Status Values (must match your Notion Status property exactly)
NOTION_STATUS_BACKLOG=Backlog
NOTION_STATUS_TODO=ToDo
NOTION_STATUS_IN_PROGRESS=In Progress
NOTION_STATUS_IN_REVIEW=In Review
NOTION_STATUS_DONE=Done
5. Start Clotion
Run from the cloned repository directory:
cd clotion
clotion
Important: Always run
clotionfrom the cloned repository directory. Configuration is loaded from.envin the current working directory.
Clotion will:
- Connect to your Notion database
- Auto-create required properties (Blocked, Current Status, Clotion ID, Branch, PR URL)
- Start polling for task changes
- Begin listening for cards moved to ToDo
6. Test It
- Go to your Notion database
- Create a card in Backlog with a task description
- Move the card to ToDo
- Watch Clotion pick up the task!
You'll see output in your terminal as Claude Code:
- Creates a worktree for the task
- Analyzes the requirements
- Implements the solution
- Creates a PR
Next Steps
- Configuration - Full environment variable reference
- How It Works - Understand the task lifecycle
- Notion Setup - Detailed database configuration