Configuration¶
Stardag configuration follows a hierarchical model for managing different environments, teams, and storage locations.
Conceptual Model¶
Registry (API Backend)
└── Workspace (team/company)
└── Environment (project/stage)
└── Target Roots (storage locations)
| Concept | Description |
|---|---|
| Registry | A Stardag API backend (local dev server or SaaS) |
| Workspace | A team or company sharing access to environments |
| Environment | Logical grouping for separating projects or stages |
| Target Roots | Named storage locations for task outputs |
Configuration Hierarchy¶
Settings are resolved in priority order (highest to lowest):
- Environment variables (
STARDAG_*) - Project config (
.stardag/config.tomlin repository) - User config (
~/.stardag/config.toml) - Defaults
These configure the registry and profiles. Settings that describe a
package rather than a registry live apart from them, in the
[tool.stardag] table of the package's pyproject.toml, and are read even
with STARDAG_NO_REGISTRY=1:
[tool.stardag]
task_store = "src/my_package/stardag_task_store" # relative to this pyproject.toml
task_modules = ["my_package.tasks.*"] # where the task classes live
Each package of a repository has its own. See Pin Tasks in a Committed Store.
Quick Start¶
Local Development¶
With API Service¶
Then configure:
# Add registry and login
uv run stardag config registry add local --url http://localhost:8000
uv run stardag auth login --registry local
# Create and use profile
uv run stardag config profile add dev \
-r local \
-u me@example.com \
-w my-workspace \
-e development
uv run stardag config profile use dev
Production (CI/CD)¶
export STARDAG_API_URL=https://api.stardag.com
export STARDAG_API_KEY=sk_...
export STARDAG_WORKSPACE_ID=...
export STARDAG_ENVIRONMENT_ID=...
In This Section¶
- Profiles - Switch between environments
- Workspaces & Environments - Organize teams and projects
- CLI Reference - All CLI commands