GitMoon has a remote MCP server and a REST API. Claude, Codex, Hermes, Replit, Lovable, v0 and Emergent can create repositories, commit files, work on branches and run AI review as your GitMoon account. DeepSeek and other models use the same operations through function calling.
Click create, give the key a name (for example "Claude Code") and copy it. GitMoon shows it only once and stores only a hash.
Paste it where your tool asks for a bearer token. Keys start with gitmoom_.
Revoke a key on the same page at any time. Agents using it stop working right away.
No key needed for apps that sign in with OAuth (Claude, ChatGPT, and the OAuth option of Replit, Lovable and v0): they register themselves with GitMoon, and you always see an Allow screen that names where the app will send you back. GitMoon only lets known AI apps and programs on your own computer register.
A key acts as your account: it can read and change your repositories and read public ones. The free Starter plan allows 1 key, Pro 5. Keep keys out of code and chats; use environment variables.
2. Add GitMoon to your tool
Claude (claude.ai and Claude Desktop)
MCP (OAuth)
Add GitMoon as a custom connector. You sign in with your GitMoon account; no API key needed.
In Claude, open Customize > Connectors, click Add, then Add custom connector.
Name: GitMoon. Remote MCP server URL: https://gitmoon.dev/mcp. Leave the OAuth client fields empty: Claude registers itself with GitMoon.
Click Add, then Connect. Sign in to GitMoon and click Allow.
In a chat, turn GitMoon on from + > Connectors. Claude asks before each tool call unless you allow it.
Server URL
https://gitmoon.dev/mcp
OAuth Client ID (only if Claude asks for one)
46e2fa1c-e6bb-47e8-83c6-851019696d76
If your Claude version asks for an OAuth client, choose "Use your own OAuth client" and paste the client ID above with no secret. Custom connectors work on Claude Free (one connector), Pro, Max, Team and Enterprise. On Team and Enterprise an Owner adds the connector first in Organization settings > Connectors.
Prefer the Connectors screen above. If you manage Claude Desktop with claude_desktop_config.json, bridge the remote server with mcp-remote (needs Node.js).
Open Claude Desktop > Settings > Developer > Edit Config.
Add the gitmoon entry below, put your key after Bearer, save and restart Claude Desktop.
Add GitMoon as a custom MCP server in ChatGPT. ChatGPT registers itself with GitMoon and you sign in with your GitMoon account; no API key.
On chatgpt.com open Plugins and add a custom MCP server (on older versions: Settings > Apps & Connectors > Advanced settings > turn on Developer mode, then Create app).
Name: GitMoon. MCP server URL: https://gitmoon.dev/mcp. Authentication: OAuth. Leave client ID and secret empty.
Read and accept ChatGPT's warning about custom servers, then click Create (or Add).
Sign in to GitMoon in the window that opens and click Allow.
In a chat, pick GitMoon from the + menu (or Developer mode tools). ChatGPT asks before tools that change things.
Server URL
https://gitmoon.dev/mcp
Custom MCP servers depend on your ChatGPT plan and workspace settings; on Business and Enterprise an admin may need to allow them.
Add GitMoon as a custom MCP chat connector. Sign in with OAuth, or use a bearer token.
Open Connectors, select Add custom, then MCP server.
Server name: GitMoon. Server URL: https://gitmoon.dev/mcp
Authentication: OAuth (default). Click Add & authorize, sign in to GitMoon and click Allow.
Or choose Bearer token or API key and paste your GitMoon API key, then click Add server.
Server URL
https://gitmoon.dev/mcp
If Lovable shows invalid_redirect_uri, use the API key and tell us at gitmoon.dev/about. Chat connectors are personal and are not part of your published app.
Emergent's docs describe the mcpServers format and bearer-token auth but do not publish every field name; if its form asks for the token separately, paste only the key.
12 tools. The same names work as MCP tools, REST operations (operationId) and OpenAI-style functions (tools list).
list_repositories
List the repositories you own on GitMoon, newest activity first. Optional text filter on the name or description.
get_repository
Get one repository: name, visibility, default branch, branches, file count and the latest commits.
create_repositorywrites
Create a new repository in your GitMoon account. It is private unless you set visibility to PUBLIC. Fails if you already have a repository with the same name.
list_files
List the files of a repository at a branch or commit (default branch when ref is empty). Optional folder prefix.
read_file
Read one file by path at a branch or commit. Text files come back as text; other files as base64. Files over 1 MB are not returned.
commit_fileswrites
Create, update and delete several files in ONE commit on a branch of your repository. Files you do not list stay as they are. Limits: 300 files, 5 MB per file, 15 MB per commit. Send expected_head_sha to fail instead of overwriting if someone else committed first. Set create_branch to make the branch from the default branch when it does not exist.
list_commits
List commits of a repository, newest first. Optional branch filter.
list_branches
List the branches of a repository with their head commit.
create_branchwrites
Create a branch in your repository from another branch or a commit (default: the default branch).
run_ai_reviewwrites
Run GitMoon's AI on a commit of your repository: CODE_REVIEW (default), AUTO_FIX, REFACTOR or DOCGEN. This SPENDS AI tokens from your GitMoon plan (monthly quota first, then bought token packs). Ask the user before running it. Returns the review text and the tokens used.
set_repository_visibilitywrites
Make your repository PUBLIC (shown in Explore, anyone can read it) or PRIVATE. Only the owner can do this. Check with the user before making code public.
search_public_repositories
Search public repositories in GitMoon Explore by name or description. Sort: trending (Kudos this week), top (all-time Kudos) or new.
Not available yet: git push and clone over SSH or HTTPS, importing from other hosts, pull requests and issues. Agents save code with commit_files instead.
REST API
For GPT Actions, Replit or Emergent apps and your own scripts. Base URL https://gitmoon.dev/api/v1, spec at /openapi.json, guide for coding agents at /agents.md.
A remote Model Context Protocol server at https://gitmoon.dev/mcp. AI assistants and app builders connect to it and get 12 tools to list, create and read repositories, commit files, manage branches, run AI review and search Explore, acting as your GitMoon account.
How do AI tools sign in to GitMoon?
With OAuth, where you sign in to GitMoon and click Allow (Claude, ChatGPT, and the OAuth option of Replit, Lovable and v0), or with a GitMoon API key sent as a bearer token (Claude Code, Codex, Hermes, Replit, Lovable, v0, Emergent). AI apps register themselves at gitmoon.dev/oauth/register, which only accepts the sign-in addresses of known AI apps or your own computer, and you always see the Allow screen.
Can an AI agent see other people's private repositories?
No. Every call acts as you: it can read and change your own repositories and read public ones. Private repositories of other people are reported as not found.
Does it cost anything?
Connecting is free on every plan. Only run_ai_review spends AI tokens from your plan, the same as the AI review button in the dashboard.
Can agents use git push or open pull requests?
Not yet. GitMoon has no git push/clone over SSH or HTTPS, no pull requests and no issues. Agents write code with commit_files, which saves many files in one commit.
Is there a REST API?
Yes. The same operations are at https://gitmoon.dev/api/v1, described by an OpenAPI 3.1 file at https://gitmoon.dev/openapi.json.