Code & Git
Ink managed git for zero-setup deploys, or connect GitHub for auto-deploy from your own repos
Ink provides two ways for your agent to store and deploy code:
- Ink managed git — zero setup, no GitHub required. Your agent creates repos and pushes code directly.
- GitHub integration — connect your GitHub account for webhook-based auto-deploy from existing repos.
Each service chooses its own git provider independently — you can use both simultaneously across different services.
Ink managed git
The fastest path from prompt to production. Your agent creates a repository, pushes code, and deploys — all without GitHub:
- Agent calls
create_repoto create a new repository - Ink provisions a private git repo with HTTPS access
- Agent gets a clone URL and authentication token
- Code is pushed directly to Ink's git server
- Agent calls
create_serviceto deploy from the repo
Repository naming
Repositories are created with a unique slug: username/repo-name-xxxx where xxxx is a random suffix.
Authentication
Each repository gets a dedicated access token with push and pull permissions, valid for one year. Refresh with get_git_token.
When to use managed git
- Getting started — no GitHub setup needed
- Prototyping — fast iteration without managing repos
- Agent-generated projects — your agent handles everything end-to-end
GitHub integration
For production projects where you want source code on GitHub, connect your GitHub account. This enables:
- Deploy from any GitHub repo the app has access to
- Webhook-based auto-deploy on every push
- Branch tracking — deploy from any branch
GitHub App
The Ink GitHub App gives Ink read-only access to your repositories. This is required for:
- Cloning your code during builds
- Receiving webhooks for auto-redeploy on push
GitHub account connection
Connecting your GitHub account (OAuth) allows your agent to:
- Create new repositories on your behalf
- Push code to your repos
Installing the GitHub App
- Go to Settings > GitHub Access
- Click Install GitHub App
- Choose which repositories to grant access to (all or specific repos)
- Confirm the installation on GitHub
Permissions
The GitHub App requests:
- Repository contents — read-only access to clone your code
- Webhooks — receive push events for auto-redeploy
It does not request write access to your code.
Webhook events
Once installed, the GitHub App receives push events. When you push to a branch tracked by an Ink service, a new deployment is triggered automatically.
Managing access
You can modify which repositories the app can access at any time:
- Go to GitHub > Settings > Applications > Ink
- Update repository access
- Changes take effect immediately
Migrating between providers
To move a service from Ink managed git to GitHub (or vice versa):
- Create a new service pointing to the new git provider
- Copy the code to the new repository
- Delete the old service
There's no automatic migration between providers.