Documentation

Deploy from any Git URL (deploy keys)

Deploy from any git server with a URL, public or private. Rebasable generates a read-only SSH deploy key, or uses an HTTPS token, and syncs every 60 seconds or on a hook.

You don’t need to connect an account to deploy. Paste any git URL and Rebasable builds it: GitHub, GitLab, Bitbucket, Gitea, Codeberg, Azure DevOps, AWS CodeCommit, SourceHut, your own server with git over SSH, anything that speaks git.

Accepted forms:

https://git.example.com/team/app.git
ssh://[email protected]:2222/team/app.git
[email protected]:team/app.git

Public repositories

In New service pick Any Git URL, paste the URL and keep Public. Rebasable checks the URL right away and lists the branches so you can pick one. That’s all.

Private repositories: deploy key (SSH)

  1. Pick Private, then Deploy key (SSH).
  2. Click Generate deploy key. Rebasable creates an ed25519 key pair and shows you the public key, with a copy button. The private key never leaves Rebasable and is stored encrypted.
  3. Add the public key to the repository as a read-only deploy key. The dashboard links straight to the right page when it recognizes the host:
    • GitHub: repository Settings → Deploy keys → Add deploy key (leave “Allow write access” unchecked).
    • GitLab: project Settings → Repository → Deploy keys.
    • Bitbucket: Repository settings → Access keys.
    • Gitea, Forgejo, Codeberg: repository Settings → Deploy keys.
    • Your own server: append it to ~/.ssh/authorized_keys of the git user.
  4. Click Check access. When the branches show up, pick one and create the service.

If you pasted an https URL, Rebasable clones over SSH using git@host:owner/repo.git (the dialog shows the exact URL). The server’s host key is pinned on first contact; if it changes later, deploys stop with a clear error until you click Reset pinned host key in Settings → Source.

Rotate the key at any time with Settings → Source → Rotate key. The old key stops working immediately.

Private repositories: HTTPS token

Pick Private, then Access token (HTTPS), and paste a token with read access to the repository. The username is usually ignored by the host; good values are oauth2 (GitLab), x-token-auth (Bitbucket) or x-access-token (GitHub). Never put the token in the URL: it is sent as a header and is never written to disk or to the build logs.

How it stays in sync

Plain git URLs have no webhook API, so Rebasable checks the branch for new commits every 60 seconds and deploys when it moves. To deploy instantly, use the sync hook shown in Settings → Source:

curl -X POST "https://api.rebasable.com/v1/git/webhooks/generic/rpl_xxx" \
  -H "X-Rebasable-Token: <secret>"

Point your git server’s push webhook (or a CI step) at it. It also understands GitHub, GitLab, Gitea, Forgejo and Bitbucket push payloads and signatures. Sync now in the dashboard and rebasable sync in the CLI do the same check on demand.

From the CLI and AI agents

# public
rebasable services create --repo https://git.example.com/team/app.git

# private, SSH: prints the deploy key and waits for you to add it
rebasable services create --repo [email protected]:team/app.git

# private, HTTPS token
rebasable services link-repo api --repo https://git.example.com/team/app.git --https-token "$TOKEN"

rebasable sync api

With the MCP server, ask your agent to “link my api service to [email protected]:team/app.git”: the link_repo tool returns the deploy key to add, and sync_now deploys.

Limits

  • The host must be reachable from the internet. Private network addresses (10.x, 192.168.x, localhost, cloud metadata) are refused.
  • Only https, ssh and git URLs are accepted.
  • Pull request previews and commit statuses need a connected provider.