📖 Overview
DevHQ is the financial and technical guardrail for developers. It automates retainer monitoring and git access control to ensure you get paid for your work.
DevHQ acts as an impartial enforcer between you and your client. When the retainer runs dry, commit access stops automatically. No more awkward conversations about unpaid invoices.
How It Works
- Connect Repository: Link your GitHub/GitLab repository and set your hourly rate
- Invite Client: Client adds their payment method and makes an initial retainer deposit
- Start Coding: Work as usual - time is tracked automatically via CLI or manual entries
- Auto-Protection: If funds run out, the repository locks automatically until replenishment
🚀 Quick Start
1. Create Your Account
Sign up at devhq.site and complete your profile setup.
2. Create a Project
- Go to Projects → New Project
- Enter project details and set your hourly rate
- Add a project prefix (e.g., "WEB" for tracking codes)
- Connect your Git repository
3. Invite Your Client
- Add client details in the Clients section
- Send them a contract via DevHQ
- Client signs contract and adds payment method
- Initial retainer is charged automatically
4. Start Tracking Time
🎯 Key Concepts
Retainer-Based Billing
DevHQ uses a retainer model where clients pre-fund work. As you log hours, the retainer depletes. When it reaches a threshold (default 20%), clients are automatically charged to refill it.
Tracking Codes
Each deliverable gets a unique tracking code (e.g., WEB-001, API-042). Use these codes in:
- Git branch names:
deliverable/WEB-001-feature - Commit messages:
[WEB-001] Implement feature - CLI commands:
devhq start WEB-001
Auto-Pause Protection
When budget falls below the threshold or runs out completely:
- Repository access is automatically revoked
- Client receives notification to refill retainer
- Access restores automatically upon payment
- No manual intervention required
🔒 Git Access Control
DevHQ's signature feature - automatic repository access management based on budget status.
How It Works
- Integration: Connect your GitHub/GitLab account via OAuth
- Repository Link: Associate a repository with your project
- Client Access: Client is added as a collaborator automatically
- Budget Monitoring: System tracks budget in real-time
- Auto-Lock: When budget hits threshold, client access is revoked
- Auto-Unlock: Access restores when payment is received
You maintain full repository access at all times. Only client access is controlled by budget status.
Supported Platforms
💳 Auto-Refill Retainers
Never wait for checks. Clients are automatically charged when hours run low.
Configuration
- Threshold: Set when auto-refill triggers (default: 20% remaining)
- Refill Amount: How much to charge (default: initial retainer amount)
- Payment Method: Client's saved card is charged automatically
Notification Flow
- Budget reaches threshold → Client receives warning email
- Auto-charge is attempted
- Success → Budget replenished, work continues
- Failure → Repository locked, client notified to update payment
⏱️ Time Tracking
Track time manually via the web app or automatically via the CLI tool.
Manual Time Tracking
- Go to Time Tracker in the web app
- Select a deliverable
- Click "Start Session"
- Work on your task
- Click "Stop" when done
CLI Time Tracking (Recommended)
The CLI tool provides seamless time tracking from your terminal:
Git-Based Time Tracking
DevHQ can automatically calculate time from your Git commits:
- Detects commits with tracking codes
- Groups commits into work sessions
- Calculates time based on commit timestamps
- Creates pending time entries for review
- You approve or adjust before finalizing
Sessions are grouped with a 2-hour max gap. Minimum commit time is 15 minutes, maximum session time is 8 hours per day.
👥 Client Portal
Give clients transparency into where their money is going.
Features
- Budget Overview: See remaining balance and burn rate
- Time Entries: View all logged hours with descriptions
- Deliverables: Track progress on each deliverable
- Invoices: Access all invoices and payment history
- Change Requests: Submit and approve scope changes
Access
Clients receive a magic link via email after contract signing. No password required - just click the link to access their portal.
🛠️ CLI Installation
macOS / Linux
Windows
Verify Installation
Configuration
- Get your API token from Settings → CLI Tokens in the web app
- Configure the CLI:
📝 CLI Commands
Session Management
Configuration
🔄 CLI Workflow
Typical Development Session
Multi-Tasking
🔗 Git Integration
Setup
- Go to Integrations in the web app
- Click "Connect GitHub" or "Connect GitLab"
- Authorize DevHQ to access your repositories
- Select repositories to link with projects
Tracking Code Patterns
DevHQ recognizes tracking codes in:
Branch Names
Commit Messages
Automatic Time Calculation
When you push commits with tracking codes:
- DevHQ detects the commits via webhook
- Extracts tracking codes from branches/messages
- Groups commits into work sessions
- Calculates time based on commit timestamps
- Creates pending time entries
- You review and approve in the web app
🔔 Webhooks & Events
DevHQ uses webhooks and real-time events to keep everything in sync.
Webhook Events
contract.signed- Contract signed by clientcontract.declined- Contract declined by clientpayment.received- Payment successfully processedpayment.failed- Payment failedbudget.low- Budget below thresholdbudget.depleted- Budget completely usedrepository.locked- Access revokedrepository.unlocked- Access restored
Real-Time Updates
The web app uses WebSocket connections for instant updates:
- Time session changes
- Budget updates
- Contract status changes
- Payment notifications
🔌 API Reference
DevHQ provides a REST API for integrations.
Authentication
All API requests require a Bearer token:
Base URL
Common Endpoints
Projects
Time Sessions
Deliverables
Head over to devhq.site to join the waitlist and be among the first to stop chasing invoices!
💬 Support
Need help? We're here for you:
- Email: support@devhq.site
- Documentation: docs.devhq.site
- Status: status.devhq.site