Introduction
Welcome to the Coregit documentation — serverless Git for AI-native products.
What is Coregit?
Coregit is a serverless Git hosting platform designed for AI agents and automated workflows. Instead of shelling out to git CLI or managing containers, you interact with repositories through a simple REST API.
Key Features
- API Commits — Create multi-file commits in a single HTTP call
- Lazy Edits — Send tiny
// ... existing code ...snippets; Coregit merges them server-side via Fast Apply - Agentic Search — Multi-turn natural-language code search that returns an answer + file locations, with optional SSE streaming
- Compare & Merge — Compare refs, merge with fast-forward, merge-commit, or squash strategies
- Cherry-Pick — Replay commits onto a new base with 3-way auto-merge and conflict detection
- Refs with CAS — Atomic compare-and-swap ref updates for safe concurrent workflows
- Standard Git Protocol — Clone and push with any Git client over HTTPS
- Snapshots & Restore — Named restore points for any branch
- Organization Scoping — Multi-tenant with API key authentication
- Usage-Based Billing — Free tier included, pay only for what you use
Quick Example
# Create a repository
curl -X POST https://api.coregit.dev/v1/repos \
-H "x-api-key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"slug": "my-repo", "visibility": "private"}'
# Commit files
curl -X POST https://api.coregit.dev/v1/repos/my-repo/commits \
-H "x-api-key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"branch": "main",
"message": "Initial commit",
"changes": [
{"path": "README.md", "content": "# Hello World"}
]
}'
# Clone with standard Git
git clone https://orgslug:YOUR_KEY@api.coregit.dev/orgslug/my-repo.gitNext Steps
- Getting Started — Set up your first repository
- Agent Onboarding — Sign up from any AI coding agent
- API Reference — Complete endpoint documentation
- Git Protocol — Using standard Git with Coregit