Overview

SDK-first documentation for the Rebase Platform.

The Rebase Platform is used through the rebase-toolkit SDK. Install the toolkit, run rebase setup once to authenticate this computer, then define and deploy functions, Rebase Workflows, and models from Python.

uv pip install "rebase-toolkit @ git+https://github.com/rebase-energy/rebase-toolkit.git"
rebase setup
import rebase as rb

project = rb.project("energy-forecasting")

The SDK talks to the hosted Rebase API using a built-in platform URL. Users should not set an API URL for normal usage; the local setup command stores an auth session and selected workspace profile on the computer.

The platform has eight core surfaces:

AreaPurpose
SystemCheck API and database health.
WorkspaceConfigure members, invites, and Rebase-hosted or GitHub-backed source backing for your team.
ProjectsCreate namespaces inside a workspace.
FunctionsRegister SDK-callable Python functions. Functions default to interactive/shared execution and can use dedicated isolation or job mode when needed.
WorkflowsRegister pipeline-style workflow definitions and inspect immutable versions.
ModelsVersion, deploy, promote, run, and publish prediction-oriented model targets.
EndpointsExpose deployed functions, workflows, and models over stable HTTP routes.
RunsTrigger function, workflow, or model execution pinned to an exact version.

Authentication

Run setup once:

rebase setup

The command signs you in with Google or GitHub, creates or selects a workspace, and stores a local profile for the selected workspace. First-time users need a platform invite to create a workspace, or a workspace invite to join one. Project, function, workflow, model, and run queries are scoped to the active workspace, so callers only see records they can access.

Workspace owners can invite collaborators by email address or GitHub handle:

rebase workspace invite davide@rebase.energy --role Developer
rebase workspace members

Object Model

Workspace
  Project
    Function
      FunctionVersion
    Workflow
      WorkflowVersion
    Model
      ModelVersion
      ModelDeployment
      ModelPublication
    Endpoint
      EndpointVersion
    Run

Projects are the namespace boundary. Function, workflow, model, and endpoint names are unique inside a project, and SDK callers can reference shared targets with project/name.

Source backing is optional. New workspaces default to rebase_hosted, where the SDK stores executable source snapshots directly in Rebase. A workspace can also point to one GitHub repo, with each project using a folder, or individual projects can point to their own repos.

Execution Model

Functions, workflows, and models are executable targets:

TargetUse it when
FunctionYou want a low-latency SDK-callable Python function. Functions default to mode="interactive", isolation="shared"; choose dedicated isolation or job mode when needed.
WorkflowYou want a pipeline or Prefect-style orchestration target. Workflows default to interactive/shared execution and accept mode="job" for Cloud Run Jobs.
ModelYou want a versioned prediction, optimization, or agent target with environment promotion, rollback, and model lineage.

Function, workflow, and model names are stable handles. Deploys create or reuse immutable versions behind those handles:

FieldMeaning
source_code plus entrypointPython source captured by the SDK.
flow_refBackwards-compatible workflow reference already packaged in the runner image.
fingerprintHash of executable source, defaults, enabled state, dependency image spec, and provenance metadata.
Git metadataOptional repo/path/commit fields for GitHub-backed or local Git deploys.

Runs store target_version_id, so they execute the exact target version selected at submission time. Functions, models, and workflows default to interactive/shared execution. Use isolation="dedicated" for a private synchronous function/model service or mode="job" for long-running Cloud Run Jobs. See Execution Modes.

Endpoints are optional HTTP routes for deployed targets. They create normal Rebase runs and store endpoint metadata on those runs. See Endpoints for route shape, auth modes, and CLI invocation.

Hugging Face

Model versions can be published to Hugging Face model or dataset repositories. Publications are anchored to the immutable Rebase model version and the Hub commit returned by upload. GitHub/Git sync is optional, so teams can publish private or public Hub repos even when a model is not backed by a GitHub repository.

See Hugging Face for setup, artifact publishing, dataset repos, and optional Git sync.

Reference

Use the SDK pages for normal integration. The API reference pages in this site are generated from openapi.yaml and rendered by Fumadocs OpenAPI for advanced tooling and platform debugging.

On this page