The SDK automatically creates secure Git URLs with embedded JWT authentication.Documentation Index
Fetch the complete documentation index at: https://code.storage/docs/llms.txt
Use this file to discover all available pages before exploring further.
Options
Array of permissions. Defaults to
["git:read", "git:write"].Token TTL. Token TTL in seconds. Defaults to 1 year.
Policy operations to embed in the JWT. Available operations:
| Operation | Constant | Description |
|---|---|---|
no-force-push | OP_NO_FORCE_PUSH (TypeScript/Python) / OpNoForcePush (Go) | Prevents force pushes to the repository |
Available Permissions
| Permission | Description |
|---|---|
git:read | Read access to Git repository |
git:write | Write access to Git repository |
repo:write | Create a repository |
Ephemeral Remote URL
UsegetEphemeralRemoteURL() (TypeScript), get_ephemeral_remote_url() (Python), or EphemeralRemoteURL() (Go) to generate URLs that point to the ephemeral namespace. This is useful for temporary branches that shouldn’t sync to upstream mirrors.
See the Ephemeral Branches guide for more details.
Import Remote URL
UsegetImportRemoteURL() (TypeScript), get_import_remote_url() (Python), or ImportRemoteURL() (Go) to generate URLs that point to the +import push namespace. Pushing to this URL triggers immediate cold-storage archival after pack distribution.
See the Imports guide and getImportRemoteURL() reference for details.
Response
Returns astring containing the HTTPS Git remote URL with embedded JWT authentication: