# Sypnia Git documentation > Sypnia Git is a home for your code that works like GitHub: repositories, pull requests, issues, protected branches, webhooks, and plain git over SSH and HTTPS. Every change says which use case it touches, pushes can deploy with Sypnia Run, GitHub can keep a read-only copy updated on every push, and leaving for GitHub is one command and one line in sypnia.toml. Every page of the documentation follows, in reading order. Each one starts with its title and its address. --- ## Start here > What Sypnia Git is, how it works, what is open source and what is Sypnia Cloud, and the quickstarts. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/start/ For agents: Section index for Sypnia Git: GitHub-compatible code hosting in Sypnia Cloud (repositories, pull requests, issues linked to use cases, protected branches, CI hooks into Sypnia Run, webhooks), plain git over SSH and HTTPS, the Sypnia session, migration to and from GitHub with sypnia.toml, and mirroring. Engine: Forgejo behind Sypnia's own API and interface. Sypnia Git is where your code lives in Sypnia: repositories, pull requests, issues and protected branches, with plain git over SSH and HTTPS. It is built so you never feel locked in: GitHub can keep a mirror, and leaving is one command. > **Note: Sypnia uses it** > > Sypnia's own code lives in Sypnia Git: every product of the suite, these docs included, with a mirror on GitHub. - **\[Engine]** **Plain git and open tools**: any git client, any CI, and the same open-source engine underneath, which you can run yourself. - **\[Cloud]** **Sypnia Cloud** hosts your repositories with your Sypnia account, links pull requests and issues to your use cases, and deploys with Sypnia Run. --- ## What Sypnia Git is > Code hosting that works like GitHub, tied to your use cases, and easy to leave. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/start/what-it-is/ For agents: Sypnia Git: hosted git repositories compatible with GitHub's way of working (pull requests with reviews, issues, labels, protected branches, webhooks, status checks), access with the Sypnia session, SSH keys, HTTPS tokens and deploy keys; issues and pull requests linked to Cases use cases; pushes can trigger Sypnia Run; import/export/mirror with GitHub via `npx @sypnia/git` and sypnia.toml. Not a CI system (Run is), not a replacement for every GitHub feature (no marketplace, no Codespaces). Sypnia Git hosts your code the way you already know from GitHub, and connects it to the rest of Sypnia. ### What it does | | What it means for you | Read more | | ------------------------------ | --------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | | **Repositories** | private by default, plain git, any client | [Repositories](https://git.docs.sypnia.com/repos/repositories) | | **Pull requests and reviews** | comments on lines, approvals, required checks | [Pull requests](https://git.docs.sypnia.com/repos/pull-requests) | | **Protected branches** | no force-push, required reviews and checks on `main` | [Branches and protection](https://git.docs.sypnia.com/repos/branches-and-protection) | | **Issues linked to use cases** | an issue says which case it is about; the case shows its issues | [Issues and use cases](https://git.docs.sypnia.com/repos/issues-and-cases) | | **History by case** | every commit names its case, so you read «Place an order changed three times this week» | [The history of a case](https://git.docs.sypnia.com/repos/issues-and-cases#the-history-of-a-case) | | **CI with Sypnia Run** | a push builds a preview; a merge can deploy | [CI and Run](https://git.docs.sypnia.com/automation/ci-and-run) | | **Webhooks** | the same events and payload shape as GitHub's, signed | [Webhooks](https://git.docs.sypnia.com/automation/webhooks) | | **In and out** | import from GitHub, export to it, or keep a read-only copy there | [Move in, move out](https://git.docs.sypnia.com/migrate) | ### Who it is for - **People who start with Sypnia** and should not need a GitHub account to have their code safe and versioned. - **Teams** who want their code, their use cases and their deploys in one place, with one account. - **Agents**: Sypnia Agent opens branches and pull requests here; other agents use the MCP tools. ### What it is not - **Not a CI system.** Builds and deploys run in [Sypnia Run](https://run.docs.sypnia.com); any other CI works through webhooks and status checks. - **Not all of GitHub.** No marketplace, Codespaces, Pages or Discussions. What it does, it does in the same shape as GitHub, so tools and habits carry over. - **Not a lock-in.** Your repository is plain git; GitHub can keep a mirror the whole time. --- ## How it works > From a push to a reviewed, deployed change, and where each part runs. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/start/how-it-works/ For agents: Flow: git push (SSH ssh.git.sypnia.com or HTTPS git.app.sypnia.com) → the git engine (Forgejo) stores the objects and runs hooks → Sypnia's layer checks protection rules, reads Case: trailers, emits events → Run builds a preview, webhooks fire, Cases links commits to cases → a pull request is reviewed and merged → Run deploys (production needs approval) → mirrors are updated. **Figure**: Sypnia Git. Plain git in and out; Sypnia's layer adds your account, the links to use cases, Run and the mirrors. 1. You push with any git client, over SSH or HTTPS, or work in the browser. 2. Sypnia's layer checks who you are and the branch's rules. 3. The git engine stores the commits; repositories live on disk, backed up to S3. 4. Events go to Run (a preview), Cases (commits per case) and your webhooks. 5. Mirrors to GitHub are updated. #### 1. You push `git push` over SSH or HTTPS, with an SSH key, a token, or your Sypnia session through the CLI. #### 2. The rules are checked A protected branch refuses force-pushes and direct pushes; a pull request needs its reviews and checks. #### 3. Each commit says its case A `Case: place-order` trailer links the commit to its use case in Cases, so the case shows the code that built it. #### 4. A preview is built Sypnia Run builds the branch and posts a status check with the preview's address. #### 5. Review and merge Comments on lines, approvals, required checks; then merge, squash or rebase. #### 6. Deploy and mirror A merge to `main` can deploy with Run (production asks first), and the GitHub mirror is updated. --- ## Open source and Sypnia Cloud > What is open in Sypnia Git, and what the cloud adds. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/start/open-source-and-cloud/ For agents: Open: plain git (any client), the git engine (Forgejo, GPLv3+), @sypnia/git CLI and client (MIT), the webhook format (GitHub-compatible). Sypnia Cloud: hosting, Sypnia session, links to Cases/Run/Agent, mirrors managed for you, backups, the web interface in Sypnia's design. Billing in credits. | | Open source | Sypnia Cloud | | ------------------------------ | ----------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------- | | Your repository | plain git, in every clone | the same, hosted, with backups | | The engine | the open-source engine we build on ([Choosing the engine](https://git.docs.sypnia.com/architecture/engine)) | the same, run by us | | `@sypnia/git` (CLI and client) | yes | the same | | Sign-in | SSH keys and tokens | also your Sypnia session | | Links to use cases | `Case:` trailers, readable anywhere | pull requests and issues linked to Cases | | CI | any, through webhooks and status checks | also Sypnia Run, built in | | Mirrors | with your own scripts | managed: a read-only copy on GitHub | | Billing | your servers | credits, prepaid ([Plans](https://git.docs.sypnia.com/cloud)) | > **Note: Licenses** > > Decided 2026-11-17: `@sypnia/git` (CLI and client) under MIT; Sypnia's layer under AGPL-3.0; the git engine keeps its own license (GPLv3+ for Forgejo), and our changes to it are published under it. --- ## Quickstart: a new repository > Create a repository, clone it and push, with your Sypnia account. Applies to: Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/start/quickstart-new/ For agents: New repository: `npx @sypnia/git login` (device flow) → `npx @sypnia/git create laespiga/web` (or the web at git.app.sypnia.com) → `git clone https://git.app.sypnia.com/laespiga/web.git` (the CLI installs a git credential helper using the Sypnia session) or `git@ssh.git.sypnia.com:laespiga/web.git` with an SSH key → commit with `Case:` trailers → push. #### 1. Sign in ```bash npx @sypnia/git login ``` Approve the code in the browser with your Sypnia account. The CLI sets itself as git's credential helper for `git.app.sypnia.com`, so `git` uses your session; no password is ever typed. #### 2. Create the repository ```bash npx @sypnia/git create laespiga/web --private ``` Or from [git.app.sypnia.com](https://git.app.sypnia.com). #### 3. Clone and push ```bash git clone https://git.app.sypnia.com/laespiga/web.git cd web git commit --allow-empty -m "Start" -m "Case: place-order" git push ``` With an [SSH key](https://git.docs.sypnia.com/access/ssh-keys): `git clone git@ssh.git.sypnia.com:laespiga/web.git`. **You should see:** The repository in Sypnia Cloud with your first commit, linked to the case `place-order` if the project has a map. --- ## Quickstart: import from GitHub > Move a repository from GitHub with its history, issues and pull requests, and keep a read-only copy there if you like. Applies to: Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/start/quickstart-import/ For agents: Import: `npx @sypnia/git login`, then `npx @sypnia/git import github owner/repo [--mirror]`: authorizes the Sypnia GitHub App (read-only; write access to that repository only with --mirror, which keeps GitHub as a read-only copy updated from Sypnia Git), copies git history (all branches, tags, LFS), issues, pull requests with comments and reviews, labels, milestones, releases; maps GitHub users to Sypnia accounts by verified e-mail, otherwise keeps the name as text; writes git.remote into sypnia.toml. #### 1. Sign in ```bash npx @sypnia/git login ``` #### 2. Import ```bash npx @sypnia/git import github laespiga/web ``` The CLI asks you to install the Sypnia GitHub App on that repository (read-only; with `--mirror`, it may also write to that one repository to keep it as a copy). It copies: - the whole history: every branch, tag and Git LFS object; - issues and pull requests, with comments, reviews, labels and milestones; - releases and their files. People are matched to Sypnia accounts by verified e-mail; anyone else keeps their name as text. #### 3. Point your clone to Sypnia ```bash git remote set-url origin https://git.app.sypnia.com/laespiga/web.git ``` `import` also writes the new address into [`sypnia.toml`](https://git.docs.sypnia.com/migrate/sypnia-toml). **You should see:** The same repository in Sypnia Git. From now on you work in Sypnia Git. With `--mirror`, the GitHub repository stays as a read-only copy, updated on every push to Sypnia Git ([Mirroring](https://git.docs.sypnia.com/migrate/mirroring)). --- ## How Sypnia uses it > Sypnia's own code lives in Sypnia Git, with a read-only mirror on GitHub, and Telemetry, the pilot, shows how. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/start/how-sypnia-uses-it/ For agents: Dogfooding: every Sypnia product's code lives in Sypnia Git, organization sypnia, each repository with a read-only mirror on GitHub, one way (the GitHub copy is where people outside find the open source; changes, contributions included, are made in Sypnia Git, and nothing comes back from GitHub). Telemetry (the pilot): repositories sypnia/telemetry (engine and console), sypnia/sypnia-js (SDKs), sypnia/sypnia-docs (these docs); every commit carries a Case: trailer (e.g. Case: send-alert); main protected (2 reviews for the engine, no force-push, signed commits, push protection for secrets); required checks sypnia-run/preview, sypnia-cases/check and tests; Sypnia Agent works on agent/ branches and opens pull requests, a person merges; Telemetry's fixes open pull requests in Sypnia Git with no app to install; merges to main deploy with Run (production approved in App); issues linked to cases, new requests become Cases proposals; history read by case. SSH host keys of ssh.git.sypnia.com as DNSSEC-signed SSHFP records in the sypnia.com zone in Domains. Nightly bundles to S3 as for any customer. Telemetry is the pilot of the Sypnia suite: it is built on Sypnia from end to end and uses every Sypnia product. This is how it uses Sypnia Git. ### Where Sypnia's code lives Every product of the suite has its repositories in Sypnia Git, in the organization `sypnia`. Each one has a **read-only mirror on GitHub**, updated on every push: the GitHub copy is where people outside find the open source. All work, contributions from outside included, happens in Sypnia Git, where pull requests are reviewed with the same rules for everyone; nothing comes back from GitHub ([Mirroring](https://git.docs.sypnia.com/migrate/mirroring)). ### How Telemetry uses Sypnia Git | Repository | What it holds | | -------------------- | ------------------------------------------- | | `sypnia/telemetry` | the engine, in Rust, and the console | | `sypnia/sypnia-js` | the SDKs, `@sypnia/telemetry` and its paths | | `sypnia/sypnia-docs` | these docs, and the docs of every product | - **Every commit names its case.** `Case: send-alert` in the message, so the map in Cases shows the code behind each of Telemetry's cases, and «`send-alert` changed twice this week» is one view ([The history of a case](https://git.docs.sypnia.com/repos/issues-and-cases#the-history-of-a-case)). - **`main` is protected.** Two reviews for the engine, no force-push, signed commits, and push protection for secrets. - **Required checks.** `sypnia-run/preview` (the preview built by Run), `sypnia-cases/check` (nothing off the map) and the tests must pass before a merge ([CI and Run](https://git.docs.sypnia.com/automation/ci-and-run)). - **Agents propose, people merge.** Sypnia Agent works on its own branches and opens pull requests; a person reviews and merges. When Telemetry itself finds a problem in Telemetry, its fix arrives as a pull request here, with no app to install. - **Issues are linked to cases.** A bug names the case it is about; a request for something new becomes a proposal on Telemetry's map before any code ([Issues and use cases](https://git.docs.sypnia.com/repos/issues-and-cases)). - **A merge deploys.** Merging into `main` deploys with [Sypnia Run](https://run.docs.sypnia.com/); production waits for a person's approval. - **The server is verifiable.** The host keys of `ssh.git.sypnia.com` are SSHFP records in the `sypnia.com` zone, signed with DNSSEC by [Sypnia Domains](https://domains.docs.sypnia.com/) ([SSH keys](https://git.docs.sypnia.com/access/ssh-keys#check-the-server-the-first-time)). - **Backed up like anyone's.** Nightly bundles of every repository, with their issues and pull requests, go to storage in a second region, as for every customer. ### The rest of the suite | Product | What it does with Sypnia Git | | ----------------------------------------- | -------------------------------------------------------------------------------------------- | | [Cases](https://cases.docs.sypnia.com/) | reads the `Case:` trailers and the `cases/` folder; runs `cases check` on every pull request | | [Agent](https://agent.docs.sypnia.com/) | opens branches and pull requests for every task | | [Run](https://run.docs.sypnia.com/) | builds a preview on every push and deploys on merge | | [Design](https://design.docs.sypnia.com/) | writes every approved change to a guide as a pull request | | [Skills](https://skills.docs.sypnia.com/) | publishes skills from their repositories by trusted publishing | | [Learn](https://learn.docs.sypnia.com/) | puts each exercise on a branch of the learner's repository | ### What it proves All of Sypnia's work goes through Sypnia Git every day: people, agents, mirrors and deploys. If a push is slow, a rule lets something through or a mirror drops a commit, Sypnia's own team is the first to feel it. --- ## Repositories > Repositories, branches and protection, pull requests and reviews, and issues linked to use cases. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/repos/ For agents: Section index: repositories (owner/name, private by default, organizations), branches and protection rules, pull requests (reviews, required checks, merge methods), issues (labels, milestones, linked to Cases use cases). - [Repositories](/repos/repositories/): Owners and names, visibility, what a repository holds, and its limits. - [Branches and protection](/repos/branches-and-protection/): The default branch, protection rules, and who can push where. - [Pull requests](/repos/pull-requests/): Reviews, comments on lines, checks, merge methods, and the use cases a change touches. - [Issues and use cases](/repos/issues-and-cases/): Issues with labels and milestones, linked to the use cases on your map. --- ## Repositories > Owners and names, visibility, what a repository holds, and its limits. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/repos/repositories/ For agents: A repository belongs to a person or an organization (owner/name). Private by default; internal (visible to the organization) or public. Holds git objects, branches, tags, Git LFS objects, issues, pull requests, releases, webhooks, protection rules. Addresses: https://git.app.sypnia.com//.git and git@ssh.git.sypnia.com:/.git. Archive (read-only) and delete (30-day recovery). A repository belongs to a person or an organization and is named `owner/name`, like `laespiga/web`. | | | | --------- | --------------------------------------------- | | **HTTPS** | `https://git.app.sypnia.com/laespiga/web.git` | | **SSH** | `git@ssh.git.sypnia.com:laespiga/web.git` | | **Web** | `https://git.app.sypnia.com/laespiga/web` | ### Visibility - **Private** (the default): only the people and teams you add. - **Internal**: everyone in the organization can read. - **Public**: anyone can read; only members write. ### What it holds Git objects, branches and tags; Git LFS files; issues, pull requests and releases; webhooks and branch rules. Everything except the git data itself is also available through the [API](https://git.docs.sypnia.com/api), so nothing is trapped. ### Archive and delete **Archive** makes it read-only and keeps everything. **Delete** asks for the name; the repository can be recovered for 30 days, then it is gone, mirrors included only if you say so. > **Note: Limits** > > Size and file limits depend on your plan ([Sypnia Cloud](https://git.docs.sypnia.com/cloud)). --- ## Branches and protection > The default branch, protection rules, and who can push where. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/repos/branches-and-protection/ For agents: Protection rules per branch pattern: no force-push, no deletion, changes only through pull requests, N required approvals (dismissed on new commits), required status checks (e.g. sypnia-run/preview, cases/check), linear history, signed commits, who may bypass (nobody by default; never agents). New repositories protect the default branch (main) with: PR required, 1 approval, no force-push. New repositories protect their default branch (`main`) from the start: changes come through pull requests, one approval, no force-push. | Rule | What it does | | ------------------------------ | --------------------------------------------------------------------------- | | **Pull request required** | no direct pushes to the branch | | **Approvals** | how many reviewers must approve; new commits dismiss old approvals | | **Required checks** | status checks that must pass, such as `sypnia-run/preview` or `cases/check` | | **No force-push, no deletion** | history on the branch cannot be rewritten | | **Linear history** | only squash or rebase merges | | **Signed commits** | every commit verified ([Security](https://git.docs.sypnia.com/security)) | | **Who may bypass** | nobody by default; never an agent | Rules apply to a branch name or a pattern (`release/*`). Agents, Sypnia Agent included, can push to their own branches and open pull requests; merging into a protected branch is a person's decision ([Sypnia Agent](https://agent.docs.sypnia.com/safety/permissions)). --- ## Pull requests > Reviews, comments on lines, checks, merge methods, and the use cases a change touches. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/repos/pull-requests/ For agents: Pull requests: from a branch (same repo or a fork) to a base; draft state; reviewers and teams; line comments and suggestions; review states (comment, approve, request changes); required checks; merge methods merge/squash/rebase; auto-merge when green. Shows the use cases touched (from Case: trailers) with a link to Cases, and the Run preview. Closes linked issues with 'Fixes #12'. Same API shape as GitHub's. A pull request asks to bring a branch into another one, with a review. - **Draft** while you work; **ready** when you want reviews. - **Reviewers**: people or teams; each one comments, approves or asks for changes. - **Comments on lines** and **suggestions** the author can apply with one click. - **Checks**: Run's preview, `cases check`, and any external CI ([CI and Run](https://git.docs.sypnia.com/automation/ci-and-run)). - **Merge**: merge commit, squash or rebase, as the branch rules allow; **auto-merge** when everything is green. ### The use cases it touches The pull request lists the use cases its commits name in `Case:` trailers, with a link to each one in Cases, and warns when a commit names no case and the project has a map ([Issues and use cases](https://git.docs.sypnia.com/repos/issues-and-cases)). ### Closing issues `Fixes #12` in the description or a commit closes issue 12 when the pull request is merged, as on GitHub. --- ## Issues and use cases > Issues with labels and milestones, linked to the use cases on your map. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/repos/issues-and-cases/ For agents: Issues: title, description, labels, assignees, milestones, comments; templates. Each issue can link one or more Cases use cases (field 'cases'); the Cases case shows its open issues. Commits link via trailer `Case: `; pull requests aggregate. Kinds: bug in a case (the case exists), new case (becomes a Cases proposal), outside the plan (contract proposal). Without a Cases project, the field is free text. Issues work as you know them: a title, a description, labels, assignees, milestones and comments. What Sypnia adds is the **use case**. ### Linking to the map An issue says which use case it is about. The case in Cases then shows its open issues, next to its code, data and traces. | The issue is… | What happens | | --------------------------------------- | --------------------------------------------------------- | | a bug in a case that exists | linked to that case | | a new thing people should be able to do | «Propose a case» opens a proposal in Cases | | outside the plan | it is marked so, and a change to the plan can be proposed | ### Commits and pull requests A commit names its case with a trailer: ```text Let customers cancel until 10 am Case: cancel-order ``` Pull requests collect the cases of their commits. Without a Cases project, the trailer is still kept and readable by any tool. ### The history of a case Because every commit names its case, you can read a repository's history by case: «Place an order changed three times this week», with who changed it, in which pull requests, and which of those changes are already in production. - **In the browser**, a case's page in the repository lists its commits, pull requests and open issues, newest first. - **From the terminal**, `npx @sypnia/git log --case place-order --since 7d` lists the same commits. - **From the API**, [`GET /v1/repos/{owner}/{repo}/commits?case=place-order`](https://git.docs.sypnia.com/api#history-of-a-case). - **In Cases**, the case shows the same history next to its data and its traces ([Cases and Git](https://cases.docs.sypnia.com/links/git)). --- ## Access > Your Sypnia session, SSH keys, HTTPS tokens, deploy keys, and who can do what. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/access/ For agents: Ways to authenticate to Sypnia Git: the Sypnia session (browser, and the CLI as a git credential helper), SSH keys (per person), HTTPS tokens (fine-grained, expiring), deploy keys (per repository, read-only by default). Roles: read, triage, write, maintain, admin, per person or team, from the organization. | Way | For | Page | | ----------------------- | ---------------------------------------------------------- | ----------------------------------------------------------------------- | | **Your Sypnia session** | the browser, and `git` through the CLI's credential helper | [The Sypnia session](https://git.docs.sypnia.com/access/sypnia-session) | | **SSH keys** | your own machines | [SSH keys](https://git.docs.sypnia.com/access/ssh-keys) | | **HTTPS tokens** | scripts, CI, machines without SSH | [HTTPS tokens](https://git.docs.sypnia.com/access/https-tokens) | | **Deploy keys** | one server reading one repository | [Deploy keys](https://git.docs.sypnia.com/access/deploy-keys) | ### Roles | Role | Can | | ------------ | --------------------------------------------------------------------------------- | | **Read** | clone, read issues and pull requests | | **Triage** | also label, assign, close issues | | **Write** | also push to unprotected branches, open and merge pull requests where rules allow | | **Maintain** | also manage branch rules, webhooks and releases | | **Admin** | everything, including deleting the repository and changing access | Roles are given to people or teams of the Sypnia organization. - [The Sypnia session](/access/sypnia-session/): One Sypnia account in the browser and in git, without passwords or pasted tokens. - [SSH keys](/access/ssh-keys/): Add your public keys and push over SSH. - [HTTPS tokens](/access/https-tokens/): Fine-grained tokens that expire, for scripts and CI. - [Deploy keys](/access/deploy-keys/): An SSH key for one server and one repository, read-only by default. --- ## The Sypnia session > One Sypnia account in the browser and in git, without passwords or pasted tokens. Applies to: Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/access/sypnia-session/ For agents: Sign-in with the Sypnia account at auth.sypnia.com (OIDC) in the browser. For git over HTTPS, `npx @sypnia/git login` (device flow) installs a git credential helper (`git-credential-sypnia`) that hands git a short-lived token (1 h, refreshed from the DPoP-bound session in ~/.config/sypnia, mode 600). Roll-in: first visit adds Git to the account. Sign out revokes the session and its tokens. Sypnia Git uses the same account as every Sypnia product, at `auth.sypnia.com`. The first time you open it, Git is added to your account. ### In git, without passwords ```bash npx @sypnia/git login ``` You approve a code in the browser. The CLI installs a **credential helper** for `git.app.sypnia.com`: each time git needs to authenticate, the helper gives it a token that lasts one hour, renewed from your session. You never type or paste a password or a token. The session lives in `~/.config/sypnia/` (mode 600) and is bound to a key on your machine. **Sign out** (`npx @sypnia/git logout`, or Account → Devices) revokes it and every token it issued. --- ## SSH keys > Add your public keys and push over SSH. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/access/ssh-keys/ For agents: SSH: host ssh.git.sypnia.com, user git; keys ed25519 (recommended), ecdsa, rsa ≥ 3072; security keys (sk-ssh-ed25519) supported. Add in Account → SSH keys or `npx @sypnia/git keys add ~/.ssh/id_ed25519.pub`. Host key fingerprints published as DNSSEC-signed SSHFP records of ssh.git.sypnia.com (check with ssh -o VerifyHostKeyDNS=yes or dig SSHFP); self-hosted: git keys host-records prints them. A key belongs to one person; it can also sign commits. ```bash ssh-keygen -t ed25519 -C "you@example.com" npx @sypnia/git keys add ~/.ssh/id_ed25519.pub git clone git@ssh.git.sypnia.com:laespiga/web.git ``` - **Key types**: Ed25519 (recommended), ECDSA, RSA of 3072 bits or more, and hardware security keys (`sk-ssh-ed25519`). - **One key, one person.** The same public key cannot be added to two accounts. - **The server's fingerprints** are published as SSHFP records in DNS, signed with DNSSEC, so you can check the host the first time you connect ([below](#check-the-server-the-first-time)). - The same key can **sign your commits** ([Security](https://git.docs.sypnia.com/security)). ### Check the server the first time The first time you connect, SSH shows the server's fingerprint and asks whether to trust it. The true fingerprints of `ssh.git.sypnia.com` are its SSHFP records in DNS, in the `sypnia.com` zone that Sypnia Domains signs with DNSSEC. Let SSH compare them for you: ```bash ssh -o VerifyHostKeyDNS=yes -T git@ssh.git.sypnia.com ``` **You should see:**`Matching host key fingerprint found in DNS.` and a greeting with your username. SSH saves the key, and the question never comes back. To read the records yourself, `dig SSHFP ssh.git.sypnia.com +dnssec` lists one record per key type, with the `ad` flag that says the answer is signed. To always check, add `VerifyHostKeyDNS yes` under `Host ssh.git.sypnia.com` in `~/.ssh/config`. A self-hosted engine publishes its own: `npx @sypnia/git keys host-records` prints the SSHFP records to add to your zone. --- ## HTTPS tokens > Fine-grained tokens that expire, for scripts and CI. Applies to: Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/access/https-tokens/ For agents: HTTPS tokens (prefix syp_git_): fine-grained by repository and permission (contents read/write, issues, pull requests, webhooks), expiry required (max 1 year), shown once, stored hashed. Use as the password with any username over HTTPS, or Bearer on the API. Revoke anytime; leaked-token scanning revokes tokens found in public places. A token is for something that is not you at a keyboard: a script, a CI job, another service. - **Fine-grained**: which repositories, and what on each (code read or write, issues, pull requests, webhooks). - **Expires**: you choose when, up to one year. No token lasts forever. - **Shown once**, then stored only as a hash. It starts with `syp_git_`, so scanners can find it if it leaks. ```bash git clone https://git.app.sypnia.com/laespiga/web.git # Username: anything · Password: the token ``` For your own machine, prefer [your Sypnia session](https://git.docs.sypnia.com/access/sypnia-session): nothing to paste, nothing to rotate. --- ## Deploy keys > An SSH key for one server and one repository, read-only by default. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/access/deploy-keys/ For agents: Deploy keys: an SSH public key added to one repository (Settings → Deploy keys or `npx @sypnia/git deploy-keys add key.pub [--write]`), read-only unless --write, never able to bypass protected branches; one key per repository; last-used shown; revoke anytime. A deploy key lets one server read one repository, without a person's account. ```bash npx @sypnia/git deploy-keys add laespiga/web ./deploy_key.pub ``` - **Read-only** by default; `--write` lets it push, but never past a protected branch. - **One repository per key.** For several, use one key each. - The repository shows when each key was **last used**; revoke any of them at once. --- ## Automation > CI hooks into Sypnia Run, webhooks, and status checks. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/automation/ For agents: Automation: pushes and pull requests trigger Sypnia Run (previews, deploys) through internal events; any external CI via webhooks + the status checks API; GitHub-compatible webhook payloads signed with HMAC-SHA256. - [CI and Sypnia Run](/automation/ci-and-run/): A push builds a preview, a merge can deploy, and any CI can report its checks. - [Webhooks](/automation/webhooks/): Events with GitHub's payload shape, signed, retried, and logged. --- ## CI and Sypnia Run > A push builds a preview, a merge can deploy, and any CI can report its checks. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/automation/ci-and-run/ For agents: Built in with Sypnia Run: on push to a branch with a pull request, Run builds a preview and posts status sypnia-run/preview with its URL; on merge to the default branch, Run deploys (production deploys follow Run's approval rules). Configured in sypnia.toml (the [run] table). External CI: subscribe to push/pull_request webhooks, report results with POST /v1/repos/{owner}/{repo}/statuses/{sha} (state, context, target_url). Required checks are set in branch rules. ### With Sypnia Run Link a repository to a Run project once (in `sypnia.toml` or in the repository's settings). Then: | When | Run does | You see | | -------------------------------------- | -------------------- | ------------------------------------------------------------------------------------------------------ | | a branch with a pull request is pushed | builds a **preview** | a check `sypnia-run/preview` with the preview's address | | a pull request is merged into `main` | **deploys** | the deploy in the pull request; production follows [Run's approval rules](https://run.docs.sypnia.com) | ### With any other CI Subscribe it to `push` and `pull_request` [webhooks](https://git.docs.sypnia.com/automation/webhooks) and report back with the status API: ```bash curl -X POST https://git.api.sypnia.com/v1/repos/laespiga/web/statuses/$SHA \ -H "Authorization: Bearer $SYPNIA_GIT_TOKEN" \ -d '{"state":"success","context":"ci/tests","target_url":"https://ci.example.com/run/42"}' ``` ### The contract check With the repository linked to a map in [Sypnia Cases](https://cases.docs.sypnia.com/), Cases runs [`cases check`](https://cases.docs.sypnia.com/contract/the-check/) on every push to a pull request and posts the check `sypnia-cases/check`, with its findings as notes on the lines: code that does what no case says, a case that is not built, code that disagrees with its case. Make it required on `main`, and nothing off the map is merged, by people or by agents. Any check can be made **required** in the [branch rules](https://git.docs.sypnia.com/repos/branches-and-protection). --- ## Webhooks > Events with GitHub's payload shape, signed, retried, and logged. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/automation/webhooks/ For agents: Webhooks per repository or organization: events push, pull_request, pull_request_review, issues, issue_comment, create, delete, release, status, plus Sypnia's case_linked. Payloads follow GitHub's shape where an equivalent exists; headers X-Sypnia-Event, X-Sypnia-Delivery, X-Sypnia-Signature-256 (HMAC-SHA256 of the body with the secret; also X-Hub-Signature-256 for compatibility). Retries with backoff for 24 h on non-2xx; deliveries log with redeliver; 10 s timeout. A webhook sends an HTTPS `POST` to your address when something happens. | Event | When | | ------------------------------------- | ---------------------------------------------------- | | `push` | commits pushed to a branch or tag | | `pull_request`, `pull_request_review` | opened, updated, reviewed, merged, closed | | `issues`, `issue_comment` | opened, edited, closed, commented | | `create`, `delete` | a branch or tag created or deleted | | `release`, `status` | a release published; a check reported | | `case_linked` | a commit, issue or pull request linked to a use case | Payloads follow **GitHub's shape** wherever an equivalent exists, so most existing tools work unchanged. ### Checking the signature Each delivery carries `X-Sypnia-Signature-256`: an HMAC-SHA256 of the body with your webhook's secret (also sent as `X-Hub-Signature-256`). ```ts import { verifyWebhook } from '@sypnia/git/webhooks'; const event = verifyWebhook(rawBody, request.headers, process.env.WEBHOOK_SECRET!); // throws if the signature is wrong ``` ### Delivery Ten seconds to answer with a `2xx`; otherwise it is retried with backoff for 24 hours. Every delivery is logged with its response, and can be sent again. --- ## Move in, move out > Import from GitHub, export to GitHub, keep a read-only mirror on GitHub, and the project's sypnia.toml. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/migrate/ For agents: Migration: `npx @sypnia/git import github owner/repo` (history, LFS, issues, PRs, reviews, labels, milestones, releases), `npx @sypnia/git export github owner/repo` (the reverse), `npx @sypnia/git mirror github owner/repo` (one way, Sypnia Git → a read-only copy on GitHub); `git.remote` in sypnia.toml says where the code lives for every Sypnia product. Sypnia Git is built so that leaving is easy, which is why staying is a choice. - [From GitHub](/migrate/from-github/): Import repositories with their history, issues, pull requests and releases. - [To GitHub](/migrate/to-github/): Leave with everything, in one command. - [Mirroring](/migrate/mirroring/): Keep a read-only copy of your repository on GitHub, updated on every push to Sypnia Git. - [sypnia.toml](/migrate/sypnia-toml/): The one configuration file of your project, and the table that says where your code lives. --- ## From GitHub > Import repositories with their history, issues, pull requests and releases. Applies to: Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/migrate/from-github/ For agents: import github: one repo (`owner/repo`) or an organization (`--org owner`, all or selected). Uses the Sypnia GitHub App (read-only scopes: contents, metadata, issues, pull requests). Copies: git refs and objects (mirror clone), LFS, issues, PRs (as closed/merged history or open PRs if the branch exists), comments, reviews, labels, milestones, releases + assets. Users mapped by verified e-mail. Not copied: Actions workflows run (kept as files), secrets, Discussions, Projects, wikis (wiki repos copied as git). Idempotent re-runs; a report lists everything not copied. ```bash npx @sypnia/git import github laespiga/web # one repository npx @sypnia/git import github --org laespiga # an organization, choosing which repositories ``` The import uses the **Sypnia GitHub App**, installed by you on the repositories you choose, with read-only access. | Copied | Not copied | | -------------------------------------------------------------------- | --------------------------------------------------------------- | | every branch, tag and commit; Git LFS files | secrets (add them again in Run) | | issues and pull requests, with comments, reviews, labels, milestones | Discussions and Projects | | releases and their files | GitHub Actions runs (the workflow files stay in the repository) | | wikis, as git repositories | stars and watchers | People are matched to Sypnia accounts by verified e-mail; anyone else keeps their name as text. Running the import again only brings what changed. At the end, a **report** lists anything that could not be copied and why. --- ## To GitHub > Leave with everything, in one command. Applies to: Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/migrate/to-github/ For agents: export github owner/repo: creates or uses a GitHub repository (via the Sypnia GitHub App with write access, granted only for the export), pushes all refs and LFS, recreates issues and PRs (with comments, labels, milestones; authorship noted in the text), releases; updates git.remote in sypnia.toml; the repository in Sypnia Git stays until you archive or delete it. Also `npx @sypnia/git export archive` → a .tar with a git bundle and JSON of issues/PRs (works without GitHub). ```bash npx @sypnia/git export github laespiga/web ``` - Pushes **every branch, tag and LFS file** to GitHub. - Recreates **issues and pull requests** with their comments, labels and milestones (the original author and date are noted in each one). - Copies **releases** and their files. - Changes `git.remote` in [`sypnia.toml`](https://git.docs.sypnia.com/migrate/sypnia-toml), so the other Sypnia products follow the code. Your repository in Sypnia Git stays as it was until you [archive or delete it](https://git.docs.sypnia.com/repos/repositories). Not going to GitHub? `npx @sypnia/git export archive` gives you a file with a git bundle and every issue and pull request as JSON. --- ## Mirroring > Keep a read-only copy of your repository on GitHub, updated on every push to Sypnia Git. Applies to: Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/migrate/mirroring/ For agents: Mirrors go one way: Sypnia Git → GitHub. Work happens in Sypnia Git; the GitHub copy is read-only. `npx @sypnia/git mirror github owner/repo` sets it up (Sypnia GitHub App with write access to that repository only); every push to Sypnia Git pushes the changed branches, tags and LFS objects to GitHub. Nothing comes back: a commit pushed straight to GitHub, or a pull request opened there, is not brought into Sypnia Git, and the next update overwrites that branch. Protect the branches on GitHub so only the Sypnia GitHub App can push. Issues and pull requests are not mirrored (only moved at import/export). `--stop` ends the mirror and leaves the GitHub copy as it is. sypnia.toml: [git] mirror.github. A mirror keeps a **read-only copy** of your repository on GitHub. Your work happens in Sypnia Git: people and agents push there, pull requests are reviewed there, and the GitHub copy follows. It is useful when people outside should find your open-source code on GitHub, or when a tool you use only reads from GitHub. ```bash npx @sypnia/git mirror github laespiga/web ``` The command asks you to install the Sypnia GitHub App on that GitHub repository, with permission to write to it and nothing else, and records the mirror in the `[git]` table of [`sypnia.toml`](https://git.docs.sypnia.com/migrate/sypnia-toml). ### What moves - **On every push to Sypnia Git**, the branches, tags and LFS objects that changed are pushed to GitHub, usually within seconds. - **Nothing comes back.** A commit pushed straight to GitHub, or a pull request opened there, is not brought into Sypnia Git, and the next update from Sypnia overwrites that branch on GitHub. Protect the branches on GitHub so that only the Sypnia GitHub App can push to them. - **Code only.** Issues and pull requests are not mirrored. They move once, when you [import](https://git.docs.sypnia.com/migrate/from-github) or [export](https://git.docs.sypnia.com/migrate/to-github). ### Stop a mirror ```bash npx @sypnia/git mirror github laespiga/web --stop ``` The GitHub copy stays as it was at the last update; nothing is deleted on either side. --- ## sypnia.toml > The one configuration file of your project, and the table that says where your code lives. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/migrate/sypnia-toml/ For agents: sypnia.toml (TOML at the repository root) is the project's one configuration file, shared by every Sypnia product: top-level format = 1 and project = "", then one table per product ([git], [run], [data], [agent], [ai], [design], [skills]…). Each product reads only its table and ignores the others; each product's command line rewrites only its own table and keeps comments; never secrets. The [git] table: remote (where the code lives: https://git.app.sypnia.com//.git, or any git URL after leaving), default_branch, mirror.github (owner/repo of the read-only GitHub mirror). Run, Cases and Agent read git.remote to find the code; import and export change it. `sypnia.toml` sits at the root of your repository and is the **one configuration file** of your project: every Sypnia product reads it. At the top it names the project; then each product has a table of its own. Each product reads only its table and ignores the others, and each product's command line rewrites only its own table, keeping your comments. Secrets never go in it. `sypnia.toml` ```toml format = 1 project = "la-espiga" [git] remote = "https://git.app.sypnia.com/laespiga/web.git" default_branch = "main" mirror = { github = "laespiga/web" } # a read-only copy on GitHub [run.apps.laespiga] kind = "ssr" ``` ### The `[git]` table | Key | Type | What it is | | ---------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------- | | `remote` | string | **where the code lives**: your repository in Sypnia Git, or, after you [leave](https://git.docs.sypnia.com/migrate/to-github), any git address | | `default_branch` | string | the branch that deploys to production, `main` by default | | `mirror.github` | string | `owner/repo` of the [read-only mirror](https://git.docs.sypnia.com/migrate/mirroring) on GitHub, if you keep one | Run, Cases and Agent read `git.remote` to find your code. [`import`](https://git.docs.sypnia.com/migrate/from-github) and [`export`](https://git.docs.sypnia.com/migrate/to-github) change it for you, and nothing else in the project needs to change. --- ## SDK, CLI and MCP > The @sypnia/git package, the CLI, and the MCP tools for agents. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/tools/ For agents: @sypnia/git: /client (the Git API), /webhooks (verifyWebhook), CLI `npx @sypnia/git` (login, logout, create, import, export, mirror, keys, deploy-keys, tokens, pr, issue, credential helper). MCP: https://mcp.git.sypnia.com (list_repos, get_file, create_branch, open_pull_request, comment, list_issues, create_issue, link_case; no merges into protected branches). | Piece | What it is | Page | | ---------------------------- | ------------------------------------------------------------- | ------------------------------------------------ | | `@sypnia/git/client` | a typed client for the Git API | [The SDK](https://git.docs.sypnia.com/tools/sdk) | | `@sypnia/git/webhooks` | verify and type webhook deliveries | [The SDK](https://git.docs.sypnia.com/tools/sdk) | | `npx @sypnia/git` | sign-in for git, import, export, mirrors, keys, pull requests | [The CLI](https://git.docs.sypnia.com/tools/cli) | | `https://mcp.git.sypnia.com` | MCP tools for coding agents | [MCP](https://git.docs.sypnia.com/tools/mcp) | Plain `git` needs none of these: they add sign-in, migration and the API. --- ## The SDK > The Git API from code, and webhook verification, with @sypnia/git. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/tools/sdk/ For agents: createClient({ token }) from '@sypnia/git/client': repos.get/create/list, branches.list/protect, pulls.create/get/merge/review, issues.create/list/linkCase, statuses.create, webhooks.create. verifyWebhook(body, headers, secret) from '@sypnia/git/webhooks' returns a typed event or throws. ```bash npm install @sypnia/git ``` ```ts import { createClient } from '@sypnia/git/client'; const git = createClient({ token: process.env.SYPNIA_TOKEN }); const pr = await git.pulls.create('laespiga/web', { head: 'cancel-order', base: 'main', title: 'Customers can cancel until 10 am', body: 'Case: cancel-order', }); await git.statuses.create('laespiga/web', pr.headSha, { state: 'success', context: 'ci/tests' }); ``` ```ts import { verifyWebhook } from '@sypnia/git/webhooks'; const event = verifyWebhook(rawBody, headers, process.env.WEBHOOK_SECRET!); if (event.type === 'pull_request' && event.action === 'closed' && event.pull_request.merged) { // … } ``` Every method maps to one endpoint of the [API](https://git.docs.sypnia.com/api). --- ## The CLI > Every command of npx @sypnia/git. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/tools/cli/ For agents: Commands: login/logout (device flow; installs git-credential-sypnia), create owner/name [--private|--internal|--public], import github owner/repo | --org, export github owner/repo | export archive, mirror github owner/repo [--stop] (one way: a read-only copy on GitHub), keys add|list|remove, deploy-keys add key.pub [--write], tokens create --repo --scope --expires, pr create|list|checkout|merge, issue create|list|link --case . #### `git login / git logout`\[Cloud]Signs in with your Sypnia account and installs the credential helper, so plain `git` uses your session ([The Sypnia session](https://git.docs.sypnia.com/access/sypnia-session)). #### `git create `\[Cloud]Creates a repository. Flags: `--private` (default), `--internal`, `--public`. #### `git import github `\[Cloud]Brings a repository, or an organization with `--org`, from GitHub ([From GitHub](https://git.docs.sypnia.com/migrate/from-github)). #### `git export github `\[Cloud]Moves a repository to GitHub; `export archive` writes a file instead ([To GitHub](https://git.docs.sypnia.com/migrate/to-github)). #### `git mirror github `\[Cloud]Keeps a read-only copy of the repository on GitHub, updated on every push to Sypnia Git; `--stop` ends it ([Mirroring](https://git.docs.sypnia.com/migrate/mirroring)). #### `git keys / git deploy-keys`\[Engine, Cloud]Adds, lists and removes SSH keys and deploy keys. On a self-hosted engine, `keys host-records` prints the SSHFP records of its host keys. #### `git tokens create`\[Cloud]Creates an HTTPS token: `--repo`, `--scope`, `--expires` (required). #### `git pr / git issue`\[Cloud]Opens, lists, checks out and merges pull requests; creates issues and links them to a use case with `--case `. #### `git log --case `\[Engine, Cloud]Lists the commits of one use case, from their `Case:` trailers: `--since`, `--until`, `--repo`. All commands run as `npx @sypnia/git …`; the names above leave out the prefix. --- ## MCP > The Git tools a coding agent can call, with your permissions. Applies to: Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/tools/mcp/ For agents: MCP server https://mcp.git.sypnia.com (one endpoint for the product; the token decides). Tools: list_repos, get_file (path, ref), search_code, create_branch, commit_files (to a non-protected branch), open_pull_request, comment, list_issues, create_issue, link_case (issue/PR ↔ case id). No merging into protected branches, no deleting repositories, no changing access through MCP. ```bash claude mcp add --transport http sypnia-git https://mcp.git.sypnia.com ``` #### `list_repos`\[Cloud]Repositories you can read. #### `get_file`\[Cloud]A file at a branch, tag or commit. #### `search_code`\[Cloud]Searches the code of a repository. #### `create_branch`\[Cloud]A new branch from a ref. #### `commit_files`\[Cloud]Commits changes to a branch that is not protected. #### `open_pull_request`\[Cloud]Opens a pull request; the description should name the cases (`Case: `). #### `comment`\[Cloud]Comments on an issue or a pull request. #### `list_issues`\[Cloud]Issues, filtered by state, label or case. #### `create_issue`\[Cloud]Opens an issue. #### `link_case`\[Cloud]Links an issue or a pull request to a use case. Merging into protected branches, deleting repositories and changing access are **not** available through MCP: a person does them. --- ## API reference > Every endpoint of the Git API, its authentication and its errors. Applies to: Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/api/ For agents: Base https://git.api.sypnia.com/v1, shaped like GitHub's REST API where equivalent. Auth Bearer: Sypnia token or syp_git_ token. Resources: repos, branches + protection, contents, commits, statuses, pulls (+ reviews, merge), issues (+ comments, cases), keys, deploy-keys, hooks, imports/exports/mirrors. Errors {error:{code,message}}: 401, 403 forbidden/protected_branch, 404, 409 conflict, 422 invalid_request, 429 rate_limited. **Base address:** `https://git.api.sypnia.com/v1`. **Authentication:** `Authorization: Bearer `, a Sypnia token or an [HTTPS token](https://git.docs.sypnia.com/access/https-tokens). Paths and payloads follow GitHub's REST API wherever there is an equivalent. ### Repositories and code #### Get a repository `GET /v1/repos/{owner}/{repo}` \[Cloud] **Authentication:** repo:read #### Create a repository`POST /v1/orgs/{org}/repos` \[Cloud]`{ name, visibility }`.**Authentication:** repo:admin #### A file or a folder`GET /v1/repos/{owner}/{repo}/contents/{path}` \[Cloud]`?ref=`.**Authentication:** repo:read #### Branches `GET /v1/repos/{owner}/{repo}/branches` \[Cloud] **Authentication:** repo:read #### Protect a branch`PUT /v1/repos/{owner}/{repo}/branches/{branch}/protection` \[Cloud][The rules](https://git.docs.sypnia.com/repos/branches-and-protection).**Authentication:** repo:maintain #### Report a check`POST /v1/repos/{owner}/{repo}/statuses/{sha}` \[Cloud]`{ state, context, target_url?, description? }`.**Authentication:** repo:write ### Pull requests and issues #### Open a pull request`POST /v1/repos/{owner}/{repo}/pulls` \[Cloud]`{ head, base, title, body, draft? }`.**Authentication:** repo:write #### Review`POST /v1/repos/{owner}/{repo}/pulls/{n}/reviews` \[Cloud]`{ event: "APPROVE" | "REQUEST_CHANGES" | "COMMENT", body, comments? }`.**Authentication:** repo:write #### Merge`PUT /v1/repos/{owner}/{repo}/pulls/{n}/merge` \[Cloud]`{ method: "merge" | "squash" | "rebase" }`. `403 protected_branch` when the rules are not met.**Authentication:** repo:write #### Open an issue`POST /v1/repos/{owner}/{repo}/issues` \[Cloud]`{ title, body, labels?, cases? }`.**Authentication:** repo:triage #### Link use cases`PUT /v1/repos/{owner}/{repo}/issues/{n}/cases` \[Cloud]`{ cases: ["place-order"] }`.**Authentication:** repo:triage #### History of a case`GET /v1/repos/{owner}/{repo}/commits?case={id}` \[Engine, Cloud]The commits whose `Case:` trailer names the case, newest first, each with its pull request and whether it is on the default branch; `since` and `until` narrow the range.**Authentication:** repo:read ### Access, hooks and moves #### Add an SSH key `POST /v1/user/keys` \[Cloud] **Authentication:** user #### Add a deploy key`POST /v1/repos/{owner}/{repo}/keys` \[Cloud]`{ key, read_only }`.**Authentication:** repo:admin #### Create a webhook`POST /v1/repos/{owner}/{repo}/hooks` \[Cloud]`{ url, secret, events }`.**Authentication:** repo:maintain #### Import from GitHub`POST /v1/imports` \[Cloud]`{ source: "github", repository }`; follow with `GET /v1/imports/{id}`.**Authentication:** repo:admin #### Set up a mirror`POST /v1/repos/{owner}/{repo}/mirrors` \[Cloud]`{ target: "github", repository }`: a read-only copy on GitHub, updated on every push. `DELETE` on the same path stops it.**Authentication:** repo:admin ### Errors | Status | Code | When | | ------ | ------------------------------- | ---------------------------------------------------- | | 401 | `unauthorized` | no token, or an expired one | | 403 | `forbidden`, `protected_branch` | your role does not allow it; a branch rule blocks it | | 404 | `not_found` | it does not exist, or you cannot see it | | 409 | `conflict` | the branch moved; merge conflicts | | 422 | `invalid_request` | a field is missing or wrong | | 429 | `rate_limited` | too many requests | --- ## Architecture > How Sypnia Git is built, what runs where, and why we build on an open-source engine. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/architecture/ For agents: Components: edge (CloudFront for web+HTTPS git at git.app.sypnia.com; NLB for SSH at ssh.git.sypnia.com), the git engine (Forgejo, Go, GPLv3+, on ECS with repositories on EFS or EBS), Sypnia's layer (TypeScript: the Git API git.api.sypnia.com, MCP, the web interface in Sypnia's design, OIDC with auth.sypnia.com, Case: trailer reader, events to Run/Cases/webhooks, mirrors and imports as jobs), Postgres (engine metadata + Sypnia tables), S3 (LFS, release files, git bundle backups), SQS (jobs). **Figure**: Sypnia Git. An open-source git engine underneath; Sypnia's own API, interface and links on top. 1. People and agents reach Git through the web, HTTPS or SSH. 2. Sypnia's layer signs people in with their Sypnia account and checks the rules. 3. The git engine stores the repositories on disk; metadata goes to Postgres. 4. Events go to Run, Cases and webhooks; LFS and backups go to S3. 5. Jobs import, export and mirror to GitHub. | Part | What it does | Built on | | ------------------ | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | | **The git engine** | git over SSH and HTTPS, repositories, pull requests, issues, protection | an open-source forge ([Choosing the engine](https://git.docs.sypnia.com/architecture/engine)) | | **Sypnia's layer** | the Git API, MCP, the web interface in Sypnia's design, sign-in with the Sypnia account, use-case links, events | TypeScript | | **Storage** | repositories on disk; metadata in Postgres; LFS, release files and backups in S3 | AWS | | **Jobs** | imports, exports, mirrors, backups | a queue and workers | Sypnia Git does not write a git server of its own: git's protocol and storage are mature, and a forge is years of work. What makes Sypnia Git different — the account, the use cases, Run, the design, the easy exit — lives in our layer. --- ## Choosing the engine > Forgejo, Gitea, gitoxide, a server of our own, or a managed service, compared honestly, and why Sypnia Git runs on Forgejo. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/architecture/engine/ For agents: Options compared (2026-11): Forgejo (Go, GPLv3+ since v9 in 2024; community governance under Codeberg e.V.; full forge: SSH/HTTPS, PRs, issues, protection, webhooks, OAuth/OIDC login, Actions, LFS, mirrors, GitHub migration; run unmodified behind our layer) — CHOSEN. Gitea (Go, MIT; company-led since 2022, with an open-core cloud) — same features, more permissive license, governance risk. gitoxide (Rust, Apache-2.0/MIT; a client library, no forge, server side incomplete) — not usable as a server. Our own server in Rust (gitoxide + our PRs/issues/protection) — a long tail of protocol and storage edge cases; only ever worth it for the busiest paths. Managed: AWS CodeCommit (back to general availability since Nov 2025, but no forge features we could build our UI on beyond basic PRs, AWS-only), GitHub as backend via App (we would be a skin on GitHub; contradicts 'no GitHub account needed'). GitLab CE (MIT, heavy: many services, high memory). Sypnia Git needs git over SSH and HTTPS, repositories, pull requests, issues, branch protection, webhooks, Git LFS and mirrors. These are the ways to get there, compared as honestly as we can, and the one it uses. | Option | License | What it gives us | Risk | | ---------------------------- | ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | | **Forgejo** | GPLv3+ (since version 9) | a complete forge: SSH and HTTPS, pull requests, issues, protection, webhooks, sign-in with OpenID Connect, LFS, mirrors, migration from GitHub | modest: community-governed (Codeberg e.V.), active; we must share changes we make to it | | **Gitea** | MIT | the same base as Forgejo (Forgejo began as its fork) | governance: led by a company since 2022, with an open-core cloud; direction may not match ours | | **gitoxide** | Apache-2.0 / MIT | a fast Rust implementation of git, mostly the client side | it would mean building the forge ourselves | | **Our own server in Rust** | ours | full control, one language with our engines | the slowest way to a product people trust with their code | | **GitLab Community Edition** | MIT | a very complete forge | heavy to run (many services, a lot of memory); hard to put our own interface on top | | **AWS CodeCommit** | managed | git hosting on AWS (open again to new customers since November 2025) | few forge features to build on; our interface would do most of the work; AWS-only, so no self-hosting | | **GitHub as the backend** | managed | everything GitHub does | we would be a skin on GitHub, against «no GitHub account needed» | ### The choice **Sypnia Git runs on Forgejo, unmodified where possible, behind Sypnia's own layer.** - Forgejo runs the git protocol, storage, pull requests, issues, protection and webhooks: the parts that are hard to get right. - Our layer owns everything people see and everything that makes it Sypnia: the API at `git.api.sypnia.com`, the web interface in Sypnia's design, sign-in with the Sypnia account (OpenID Connect against `auth.sypnia.com`), the use-case links, Run, the mirrors and the easy exit. - **The license fits.** Forgejo is GPLv3+: we run it as a separate service and publish any change we make to it. Our layer talks to it over its API, so it keeps its own license. - **The engine is replaceable.** Because people only see our API and interface, the engine underneath can be replaced — by our own Rust server for the busiest paths, if it ever pays off — without anyone changing a remote. More choices like this one are in [Design decisions](https://git.docs.sypnia.com/reference/decisions). --- ## Request paths > A push, a pull request merge, and a mirror, step by step. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/architecture/request-paths/ For agents: Push over HTTPS: CloudFront → Sypnia layer auth (Sypnia token/syp_git_ token → engine user) → Forgejo smart HTTP → pre-receive hook calls Sypnia layer (protection rules, size limits) → objects written → post-receive event → SQS → Case: trailer reader, Run trigger, webhooks, mirror job. SSH: NLB → Forgejo SSH server (key lookup via Sypnia layer) → same hooks. Merge: API → rules check (approvals, required statuses) → engine merge → events. Mirror: job pushes refs to GitHub with the App's installation token; conflicts handled per mirroring rules. ### A push 1. **HTTPS** goes through CloudFront to Sypnia's layer, which checks the token (your session's, or an HTTPS token) and passes the request to the engine as you. **SSH** goes through a load balancer to the engine's SSH server, which asks our layer whose key it is. 2. Before accepting, a **pre-receive hook** asks our layer: is this branch protected? is the push too big? 3. The engine writes the objects. 4. A **post-receive event** goes to the queue; workers read the `Case:` trailers, ask Run for a preview, send webhooks and update mirrors. ### Merging a pull request The API checks the branch rules (approvals, required checks, linear history), asks the engine to merge, and emits the same events as a push. ### A mirror A job pushes the changed refs to GitHub with the Sypnia GitHub App's short-lived installation token. Nothing comes back from GitHub: a ref changed there is overwritten by the next update ([Mirroring](https://git.docs.sypnia.com/migrate/mirroring)). --- ## Data model > What is stored where. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/architecture/data-model/ For agents: Git data: bare repositories on disk (EFS or EBS per shard), path by repository id. Engine metadata (repos, users mapping, PRs, issues, reviews, protection) in Postgres (the engine's schema). Sypnia tables (schema sypnia_git): accounts (Sypnia user ↔ engine user), case_links (repo, kind commit|issue|pull, ref, case_id, cases_project), mirrors (repo, target, last_sync, state), imports/exports (job state, report), tokens (hash, scopes, expires), webhook_deliveries. S3: LFS objects, release assets, nightly git bundles + metadata dumps. | Where | What | | ---------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | **Disk** (one bare repository per repository, by id) | the git data: objects, refs | | **Postgres, engine schema** | repositories, pull requests, issues, reviews, branch rules, as the engine keeps them | | **Postgres, `sypnia_git` schema** | the link between Sypnia accounts and the engine's users; use-case links (commit, issue or pull request ↔ case); mirrors and their state; imports and exports with their reports; HTTPS tokens (hashed); webhook deliveries | | **S3** | Git LFS files, release files, nightly git bundles of every repository with a dump of its issues and pull requests | The nightly bundle is also what `export archive` gives you: your repository and its history as plain files. --- ## On AWS > The reference implementation of Sypnia Git on AWS, service by service. Applies to: Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/architecture/aws/ For agents: AWS: CloudFront (git.app.sypnia.com web + smart HTTP; git.api.sypnia.com; mcp.git.sypnia.com) → ALB → ECS Fargate (Sypnia layer, TS) and ECS on EC2 (Forgejo, repositories on EBS gp3 per shard, or EFS for the first phase); NLB TCP 22 for ssh.git.sypnia.com; RDS Postgres (shared Sypnia cluster, own database); S3 (LFS, assets, nightly bundles, versioned, cross-region copy); SQS + DLQ (events, jobs); Lambda workers (webhooks, mirrors, imports); EventBridge (events to Run, Cases, Agent); SSM/KMS (secrets, GitHub App key). | Service | What it does here | | ------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | | **CloudFront** | the web interface and git over HTTPS (`git.app.sypnia.com`), the API (`git.api.sypnia.com`), MCP (`mcp.git.sypnia.com`) | | **Network Load Balancer** | SSH on port 22 (`ssh.git.sypnia.com`) | | **ECS** | Sypnia's layer (Fargate) and the git engine (on EC2, close to its disks) | | **EBS or EFS** | the repositories: EFS to start, EBS per shard when size and speed ask for it | | **RDS Postgres** | the engine's metadata and Sypnia's tables | | **S3** | LFS, release files and nightly bundles, versioned and copied to a second region | | **SQS** (with a dead-letter queue) and **Lambda** | events and jobs: webhooks, mirrors, imports, exports | | **EventBridge** | events for Run, Cases and Agent | | **SSM and KMS** | secrets, including the GitHub App's private key | --- ## Failures > What happens when each part of Sypnia Git fails, and what you see. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/architecture/failures/ For agents: Engine down → pushes and clones fail with 503, the web shows read-only from cache where possible; layer down → web/API fail, SSH keeps working for known keys (short cache); disk lost → restore from last nightly bundle + replay of the day's pushes from the event log (target RPO ≤ 24 h first, then minutes with replication); webhook target down → retries 24 h; GitHub down → mirror queued, retried; import interrupted → resumes (idempotent); Postgres failover → seconds of errors. | What fails | What happens | What you see | | ------------------------- | ----------------------------------------------------------------------------------------------------------------- | ------------------------------------------- | | **The git engine** | pushes and clones fail until it is back | `503`; the web shows what it can from cache | | **Sypnia's layer** | the web and the API fail; SSH keeps working for keys it already knows | errors in the browser | | **A disk** | the repositories are restored from the last nightly bundle, then the day's pushes are replayed from the event log | a short read-only period | | **Your webhook's server** | retried for 24 hours | failed deliveries, ready to resend | | **GitHub** | mirror updates wait in the queue | «Mirror behind» on the repository | | **An import** | it resumes where it stopped | the import's progress | Backups start at one full copy a day, plus the event log; replication between disks will bring the possible loss down to minutes. --- ## Codebase > Where everything of Sypnia Git lives. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/architecture/codebase/ For agents: Repository sypnia-git: packages/git (@sypnia/git: client, webhooks, CLI incl. git-credential-sypnia), layer/ (TS: api/, mcp/, auth/ OIDC bridge, hooks/ pre-receive service, events/, jobs/ import export mirror backup), engine/ (Forgejo build and config, our patches upstreamed when possible), spec/ (OpenAPI, webhook payload schemas), deploy/. Web interface in sypnia-cloud (private). ```text sypnia-git/ ├── packages/git/ @sypnia/git: client, webhooks, CLI (with git-credential-sypnia) ├── layer/ │ ├── api/ git.api.sypnia.com │ ├── mcp/ mcp.git.sypnia.com │ ├── auth/ sign-in with the Sypnia account (OpenID Connect) for the engine │ ├── hooks/ the pre-receive service: branch rules, limits │ ├── events/ Case: trailers, Run, Cases, webhooks │ └── jobs/ imports, exports, mirrors, backups ├── engine/ the engine's build and configuration (changes sent upstream when possible) ├── spec/ OpenAPI, webhook payload schemas └── deploy/ sypnia-cloud/ private └── git-web/ the web interface in Sypnia's design ``` --- ## Self-hosting > Run the same engine yourself, or keep your code anywhere git works. Applies to: the Sypnia engine (open source, self-hosted). Source: https://git.docs.sypnia.com/self-hosting/ For agents: Self-hosting options: (1) keep any git host (GitHub, GitLab, your own) and point git.remote in sypnia.toml at it — Run, Cases and Agent still work; (2) run the engine (Forgejo) yourself with its own docs, plus Sypnia's layer (docker compose: layer + engine + Postgres) for the Sypnia API, use-case links and webhooks; sign-in with any OIDC issuer (e.g. a Sypnia Data project). ### Keep your own git host Sypnia does not require Sypnia Git. Put your host in the `[git]` table of `sypnia.toml` and Run, Cases and Agent work with it: `sypnia.toml` ```toml [git] remote = "https://gitlab.example.com/laespiga/web.git" ``` ### Run the engine and our layer The engine we build on is open source and runs on its own ([Choosing the engine](https://git.docs.sypnia.com/architecture/engine)). With Sypnia's layer next to it you also get the Sypnia Git API, the use-case links and the same webhooks: | Setting | What it is | | -------------------------------- | ----------------------------------------------------------------------------- | | `GIT_DATABASE_URL` | Postgres for the engine and Sypnia's tables | | `GIT_REPOS_PATH` | where repositories live on disk | | `GIT_AUTH_ISSUER` | the OpenID Connect issuer of your users (a Sypnia Data project, or any other) | | `GIT_PUBLIC_URL`, `GIT_SSH_HOST` | your addresses | --- ## Security > The threat model, keys and tokens, signed commits, and the checklist. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/security/ For agents: Threats/defenses: stolen credentials (session bound to device key, 1 h git tokens, expiring fine-grained PATs hashed with prefix for scanning, SSH keys per person); history rewriting (protected branches, no force-push, audit log of ref updates); malicious pushes (size limits, pre-receive checks); secrets committed (push protection scans for known token formats and blocks); cross-tenant (authorization on every request in Sypnia's layer and the engine; repository paths by id); supply chain of the engine (pinned versions, upstream security releases applied within days); webhook spoofing (HMAC signatures). Signed commits: SSH or GPG, verified badge, rule 'require signed commits'. ### Threat model | Threat | Defense | | --------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | | **Stolen credentials** | sessions bound to a key on your device; git tokens that last one hour; HTTPS tokens that expire, are stored hashed and carry a prefix scanners recognize | | **Rewritten history** | protected branches, no force-push, and a log of every branch update with who and when | | **A secret pushed by mistake** | push protection: known token formats are detected and the push is blocked, with how to fix it | | **One customer reaching another** | every request authorized in our layer and again in the engine; repositories stored by id, never by name | | **A flaw in the engine** | pinned versions; security releases applied within days | | **Forged webhooks** | every delivery signed with HMAC-SHA256 | ### Signed commits Sign with your [SSH key](https://git.docs.sypnia.com/access/ssh-keys) or GPG. Signed commits show as **verified**, and a branch rule can require them. ### Checklist - Protect `main`: pull requests, one approval, no force-push (the default). - Prefer your Sypnia session to tokens on your own machines. - Give tokens and deploy keys the least access, and an expiry. - Turn on signed commits for production branches. --- ## Sypnia Cloud > Your account and organizations, limits and plans for Sypnia Git. Applies to: Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/cloud/ For agents: Git in Sypnia Cloud: the Sypnia account (roll-in on first use), Sypnia organizations as owners with teams and roles; plans: Git alone or inside the global Sypnia subscription; extra capacity per item (storage, LFS, mirrors); prepaid with credits topped up via PayPal. ### Your account and organizations The same Sypnia account as every product. A Sypnia organization owns repositories; its teams get [roles](https://git.docs.sypnia.com/access) on them. ### Plans Git is paid like every Sypnia product: - **Git alone**, or **inside the Sypnia subscription** with more capacity in every product. - **Extra capacity per item**: storage, LFS, mirrors. - **Prepaid**: a subscription paid in advance, or credits topped up with PayPal. Nothing is billed afterwards. Credits expire 12 months after you buy them, the oldest are spent first, the smallest top-up is USD 5, and credits are not refunded except when the mistake is ours, and then only in credits ([Credits](https://app.docs.sypnia.com/account/credits)). --- ## Reference > Glossary, decisions still open, the changelog and common questions. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/reference/ For agents: Reference for Sypnia Git: glossary, design decisions, FAQ, changelog. --- ## Glossary > Every word these docs use with a fixed meaning. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/reference/glossary/ For agents: Sypnia Git vocabulary: repository, branch rule, pull request, required check, trailer, mirror (read-only, to GitHub), deploy key, HTTPS token, credential helper, engine, Sypnia layer, sypnia.toml. **Branch rule**: Protection for a branch or a pattern — pull requests required, approvals, required checks, no force-push. **Credential helper**: The small program `npx @sypnia/git login` installs so git uses your Sypnia session instead of a password. **Deploy key**: An SSH key that lets one server read, or write, one repository. **Engine**: The open-source git forge Sypnia Git runs on underneath (Forgejo). **Mirror**: A read-only copy of a repository on GitHub, updated on every push to Sypnia Git; nothing comes back from it. **Pull request**: A request to bring one branch into another, with review and checks. **Repository**: A project's code and history, named owner/name, with its branches, issues and pull requests. **Required check**: A status check that must pass before a pull request can be merged, such as Run's preview. **sypnia.toml**: The project's one configuration file, at the root of the repository, read by every Sypnia product; its git.remote says where the code lives. **Trailer**: A line at the end of a commit message, such as `Case: place-order`, that links the commit to a use case. --- ## Design decisions > The choices behind Sypnia Git, and why each one was made. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/reference/decisions/ For agents: Design decisions of Sypnia Git: the engine is Forgejo behind Sypnia's layer; licenses: @sypnia/git (CLI and client) MIT, Sypnia's layer AGPL-3.0, changes to the git engine under its own GPL; repository storage on EFS, with EBS per shard for large or busy repositories; work happens in Sypnia Git and GitHub is a read-only mirror, one way; issues and pull requests sync with GitHub at import and export, not continuously; push protection for secrets is on by default; plans are prepaid, Git alone or inside the Sypnia subscription. | Decision | What Sypnia Git does | Why | | ------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | | **The engine** | Forgejo (GPLv3+), unmodified where possible, behind Sypnia's layer ([Choosing the engine](https://git.docs.sypnia.com/architecture/engine)) | a complete, community-governed forge; replaceable, because people only see our layer | | **Licenses** | `@sypnia/git` (CLI and client) under MIT; Sypnia's layer under AGPL-3.0, like the other Sypnia engines; changes to the git engine published under its own GPL | anyone can use the tools; hosted copies share their changes | | **Repository storage** | EFS, with EBS per shard for large or busy repositories | simple for most repositories, fast for the ones that need it | | **One-way mirrors** | work happens in Sypnia Git; GitHub keeps a read-only copy, updated on every push, and nothing comes back from it | one place where code changes, so there are no conflicts to settle and nothing to lose between two sides | | **Syncing issues and pull requests with GitHub** | at import and export, not continuously | continuous sync of discussions between two hosts is fragile and confusing | | **Push protection for secrets** | on by default | the most common accident in a repository | | **Plans** | Git alone or inside the Sypnia subscription, always prepaid ([Sypnia Cloud](https://git.docs.sypnia.com/cloud)) | one account and one bill for the whole suite | --- ## FAQ > Common questions about Sypnia Git. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/reference/faq/ For agents: FAQ: do I need GitHub (no); can I keep GitHub (yes, mirror); will my tools work (any git client; GitHub-shaped webhooks and API); can I leave (export in one command); is it built from scratch (no, on an open-source engine); GitHub Actions (workflow files are kept; Run or any CI runs builds). **Do I need a GitHub account?** No. Your code can live in Sypnia from the first day. **Can I keep using GitHub?** Yes, as a read-only copy: you work in Sypnia Git and a [mirror](https://git.docs.sypnia.com/migrate/mirroring) keeps GitHub up to date on every push. To make GitHub your main home again, [export](https://git.docs.sypnia.com/migrate/to-github): it moves everything and changes `git.remote` in `sypnia.toml`. **Will my tools work?** Any git client works. Webhooks and the API follow GitHub's shapes wherever possible. **Can I leave?** `npx @sypnia/git export github` moves everything, issues and pull requests included. **Is Sypnia Git built from scratch?** No. It runs on an open-source git engine, with Sypnia's API, interface and links on top ([Choosing the engine](https://git.docs.sypnia.com/architecture/engine)). **What about my GitHub Actions?** The workflow files stay in your repository. Builds and deploys run in Sypnia Run, or in any CI through webhooks. --- ## Changelog > What changed in these docs and in Sypnia Git. Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service). Source: https://git.docs.sypnia.com/reference/changelog/ For agents: Changelog for Sypnia Git docs. ### 2026-11-18 - Mirrors go one way: work happens in Sypnia Git and GitHub keeps a read-only copy, updated on every push ([Mirroring](https://git.docs.sypnia.com/migrate/mirroring)). - The project's settings live in [`sypnia.toml`](https://git.docs.sypnia.com/migrate/sypnia-toml), the one configuration file every Sypnia product reads; its `[git]` table replaces `config.sypnia`. ### 2026-11-17 - Documentation published: repositories, branch protection, pull requests, issues linked to use cases, access (Sypnia session, SSH keys, HTTPS tokens, deploy keys), CI with Run, webhooks, moving in and out of GitHub, mirrors, `sypnia.toml`, the SDK, CLI, MCP and API, the architecture and the choice of engine, self-hosting, security and plans.