57 lines
2.2 KiB
Markdown

---
name: rithub-agent-kit
description: Connect any coding agent to Rithub (hosted git) and Scribase (hosted backend) in one step. Use when a coding agent needs a git remote to push to, or a Postgres/auth/storage backend to build against, and doesn't have one yet.
---
# Rithub + Scribase agent kit
Two hosted services, one pattern: no form, no pasted secret, one command.
## Rithub — git hosting
No account yet:
```sh
npx @recoder.xyz/rithub init
```
Creates an account, an access token and a first repo with no human — `git_remote` already has
the token embedded, so `git push` works immediately. Claim it later with a real email:
```sh
npx @recoder.xyz/rithub claim --email you@example.com
```
Already have an account? Connect your MCP client — see the full matrix (Claude Code, Cursor,
Codex, VS Code, Gemini CLI, Windsurf, Zed, Cline, Roo, Continue, Kiro, Goose, OpenCode, Amp,
Warp, Factory) at <https://rithub.dev/mcp-docs>. Listed on the official MCP registry as
`dev.rithub/rithub`.
## Scribase — backend (Postgres, auth, storage, realtime, functions)
No account yet:
```sh
npx scribase init --temp --yes --json
```
Returns a live project URL + anon key in under a minute, claimable later, no card. Connect your
MCP client the same way — matrix at <https://docs.scribase.com/docs/agents/setup.md>. Listed on
the official MCP registry as `com.scribase/scribase`.
## Use them together
Host the code you write on Rithub (`rit push`), back it with a Scribase project
(`SCRIBASE_URL`/`SCRIBASE_ANON_KEY` in `.env`). Neither needs a server you run yourself — both
are paid-hosted products; a free tier covers one Rithub repo's worth of CI-less work and one
Scribase project with no time limit.
## Safety
- Never paste a secret key into a committed file or a chat transcript. Use `SCRIBASE_ACCESS_TOKEN`
/ a Rithub agent-scoped token (`rithub.dev/agent-tokens`) in your shell environment instead.
- A destructive Scribase call (drop/truncate/migration that removes RLS) waits for a named human
approver before it runs — this is a feature, not a bug, if your agent hits it.
- A Rithub push that force-pushes, deletes a branch, or targets a protected branch with an
agent-scoped token is held for human approval the same way.