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 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.
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: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.
- Basic
- Bearer
Configure a credential helper for The helper is scoped to
git.replo.app. The username is
token, and the API key is the password.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 Stage only the paths you intend to push. The local dev server can generate
root
repo.write; a read-only key receives
Repository not found. on push.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.
Install the local development skill
Coding agents should install Replo’slocal-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:
SKILL.md.
Next steps
Understand Git access
Review authentication, scopes, and project permissions.
Troubleshoot Git
Fix the remote errors returned by
git.replo.app.