Quickstart
Five minutes from sign-up to your first commit. By the end of this page you’ll have created an account, minted a write-scoped token, and pushed a file to a fresh repo using the SDK.
1. Sign in
Section titled “1. Sign in”Head to app.githosted.dev/login and sign in with GitHub or Google. Public beta — free.
A personal organization and a default workspace are created
automatically. You’ll be able to rename the workspace from the
welcome screen.
2. Create a write-scoped token
Section titled “2. Create a write-scoped token”In the web admin, click your workspace → Tokens → Create Token:
- Kind: Workspace (lets the token create new repos in this workspace)
- Permission: Write
- Expiration: 90 days
Copy the gw_… value when it appears. It’s only shown once.
3. Install the SDK
Section titled “3. Install the SDK”pip install githostedOr in TypeScript:
npm install @githosted/sdk4. Write your first file
Section titled “4. Write your first file”from githosted import Client
client = Client(token="gw_…")repo = client.create_repo("hello")
repo.write( "README.md", "# hello\n\nMy first githosted repo.\n", message="Initial commit",)
print("Committed:", repo.log(limit=1)[0].sha)Run it. You should see your first commit’s SHA print to stdout.
5. Verify
Section titled “5. Verify”Open the web admin → workspace → hello. The file tree shows
README.md; the commit log shows your “Initial commit”. You can
also clone the repo locally:
# One-time setup — opens the browser, stores the token in your# OS keychain, configures git's credential helper.curl -fsSL https://githosted.sh | shgho auth login
# Now plain git clone works — no token in the URL, no prompt.git clone https://githosted.dev/<workspace>/hello.gitThe SDK and git are two windows into the same repo.
No CLI installed? The dashboard’s repo page has a Clone button with a copy-paste setup block that wires git’s
http.extraHeaderagainstapi.githosted.dev. One paste, thengit cloneworks the same way.
What next
Section titled “What next”- Concepts → Tokens — when to use workspace vs repo tokens, how to scope them
- Guides → Use githosted in an agent — the bigger story: per-session repos, fork from templates, diff runs
- SDKs → Python and TypeScript — full method reference