Skip to main content
Use this reference when following the local setup checklist, configuring Git yourself, or running it in CI. For the local editing workflow, grant both repo.read and repo.write so edits can return to Replo. Any workspace member can create an API key.
1

Create an API key

If REPLO_API_KEY is already set with the repository scopes you need, skip to the next step.In Replo, open the project menu (the ⋮ button in the top bar) and choose Settings. In the left sidebar, under Workspace Settings, open API Keys, then select Create API key.If you have connected the Replo MCP server, your coding agent can do this for you instead: ask it to call create_api_key, and have it write the key straight to REPLO_API_KEY without printing it.Give the key a clear name, select the project it can access, and grant repo.read for clone and pull. Add repo.write if the key also needs to push.Copy the key when Replo shows it. You cannot view the full key again.
2

Store the key in your environment

Set the key in your shell. Store it as a masked secret instead when you run Git in CI.
Keep export. Git runs the credential helper as a separate process, and that process only sees exported variables. A plain REPLO_API_KEY=... line, or source-ing a file without export, leaves the helper with an empty password and Git reports Git authentication failed.If you keep the key in a file of KEY=value lines, export everything it defines while loading it:
Confirm that a child process can see the key without printing it:
Keep the exported key in the shell that runs Git. When you install or run a cloned site locally, remove the key only from that child command:
Use the prefix each time you launch the dev server, including after a restart. The parent shell keeps the key for later Git commands.Do not print the variable or commit it to a file.
3

Get the replo-git URL

A site’s ID is its Git repository name. If you already have the site ID, build the supported clone URL directly without the dashboard or Replo MCP server, then store it in your shell for the commands on this page.
Otherwise, open your site in Replo and click Site Settings. On the General tab, expand Advanced and copy the Git clone URL shown there. A connected Replo MCP server returns the same URL as clone_url from list_sites.
4

Configure authentication

Choose one setup. Basic works with current Git versions. Bearer is useful for raw HTTP clients and environments that already use bearer credentials.
Configure a credential helper for git.replo.app. The username is token, and the API key is the password.
The helper is scoped to git.replo.app and reads the exported REPLO_API_KEY each time Git runs. Verify the connection, then clone:
5

Push a change

Set a commit identity once if the machine has none, then commit and push. Pushing requires a key with repo.write; a read-only key receives Repository not found. on push.
Stage only the paths you intend to push. The local dev server can generate root AGENTS.md and CLAUDE.md files for coding clients; leave them untracked unless you deliberately changed the site’s shared instructions.Pushing does not publish, but the next publish can include anything on main. See Branches, pushing, and publishing before you push.
git ls-remote prints the repository’s refs when the URL, key, scope, and project access are valid. Expect at least a HEAD line. If the command returns an error, use the Git troubleshooting guide.
Keep the key out of the replo-git URL. Use the credential helper or bearer header so the remote stored in .git/config stays safe to copy.

Install the local development skill

Coding agents should install Replo’s local-development skill before they push. It covers setup, branches, reviewing before a push, and how pushing relates to publishing. It installs with the rest of the Replo agent skills:
For tools without that installer, copy its SKILL.md.

Next steps

Understand Git access

Review authentication, scopes, and project permissions.

Troubleshoot Git

Fix the remote errors returned by git.replo.app.
Back to Git overview · Troubleshoot Git