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 — most developers already deploy from GitHub. Connect your account and Ink works the same way — push to a branch, auto-deploy.
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
The primary use case for managed git is removing GitHub as a prerequisite entirely. Many users — especially non-developers using AI agents to build apps — don't have a GitHub account, haven't configured SSH keys, or don't have local git credentials set up. Without managed git, the agent would need the user to install git, create a GitHub account, generate credentials, and grant repository access before a single line of code could be deployed. Ink managed git skips all of that. The agent handles the entire flow through MCP tools, and the user never touches git directly.
This also applies to developers working on machines where GitHub credentials aren't configured — new environments, CI runners, or cloud workstations. Managed git lets the agent deploy immediately without any local setup.
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
- No GitHub account — deploy without creating or configuring a GitHub account
- No local git credentials — the agent pushes code through Ink's HTTPS git server, no SSH keys or credential helpers needed
- Prototyping — fast iteration without managing repos
- Agent-generated projects — your agent handles everything end-to-end
GitHub integration
This is the recommended approach. Most developers already use GitHub and are familiar with platforms that deploy straight from a repository — push code, trigger a build, get a live URL. Ink works the same way. Connect your GitHub account and your agent can deploy from any repo you grant access to, with automatic redeployments on every push.
Your agent can use either git provider with equal ease — the MCP tools work the same way. The advantage of GitHub is that your code always lives in your own repository where you can review changes, manage branches, and collaborate with your team. 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.