OpenAgents serves Git smart HTTP at an HTTPS URL returned by the repository API and web interface. Standard Git performs clone, fetch, push, and pull.
openagents repo clone OWNER/REPOSITORYChoose a destination directory:
openagents repo clone OWNER/REPOSITORY ./local-directoryRun one clone without a global installation:
npx --yes @openagentsinc/cli@latest repo clone OWNER/REPOSITORYThe command uses the server-provided clone URL and invokes Git without putting the token in the URL or process arguments. For the clone operation, it scopes the OpenAgents credential helper to the selected API origin.
Copy the HTTPS URL from the repository page, then run:
git clone https://openagents.com/OWNER/REPOSITORY.gitPublic repositories support anonymous clone and fetch. Private repositories require an authorized credential.
Before you use standard Git with a private repository, install the CLI globally and configure the helper:
cd existing-worktree
openagents auth setup-git --localDo not run auth setup-git through npx. The saved helper calls
openagents, and the temporary executable is unavailable after npx exits.
Use global setup only when you want every local repository to use the helper for the selected OpenAgents origin:
openagents auth setup-git --global --yesAfter you configure the helper, use standard Git commands:
git push -u origin main
git fetch origin
git pull --ff-onlyRepository owners, maintainers, and contributors can push. Viewers can clone and fetch but cannot push. Token authorization is checked again for each Git request, so revoking or expiring a token takes effect without changing the remote URL.
From a worktree whose origin is an exact OpenAgents clone URL:
openagents repo viewThe CLI accepts only /OWNER/REPOSITORY.git on the selected API origin. It
does not infer authority from an arbitrary URL that resembles a repository
path. Override inference explicitly when needed:
openagents repo view --repo OWNER/REPOSITORY
openagents repo clone -R OWNER/REPOSITORYThe credential helper:
- Returns credentials only for the exact selected OpenAgents origin.
- Rejects username, port, path, or protocol mismatches.
- Reads
OPENAGENTS_TOKENor the operating-system credential store. - Never writes a token into the Git remote URL.
- Never logs complete credential-helper input.
OpenAgents uses HTTPS in this release. SSH remotes and SSH-key management are not available yet.