Skip to content

Team Workflow

What you will learn: How to connect your local CLI to your organization’s Scion Hub, dispatch agents remotely, use the Web Dashboard, and collaborate with your team.

Scion’s “Hosted” mode allows teams to share state, infrastructure, and agent configurations by connecting to a central Scion Hub.

To connect your local CLI to a team Hub, you configure the hub section in your settings.yaml.

Edit ~/.scion/settings.yaml (or use scion config set):

hub:
enabled: true
endpoint: "https://scion.yourcompany.com"
local_only: false

Note: In workstation mode, this should be http://localhost:8080.

Note: Authentication is not required in workstation mode, it uses a machine specific dev-token, and is only listening on localhost.

Once the endpoint is configured, authenticate your CLI:

Terminal window
scion hub auth login

This will open your browser to complete the OAuth flow.

In a team environment, a Grove represents a shared project. You link your local directory to a Grove on the Hub to share context with your team.

Terminal window
# Link the current directory to the Hub
scion hub link

If the project is already registered (matched by Git remote), Scion will link it automatically. If not, it will prompt you to register a new Grove.

When linked, your .scion/settings.yaml will include the Grove ID:

hub:
grove_id: "uuid-of-the-grove"

Once a git project is linked to a Hub, all agents started via the Hub use HTTPS clone-based provisioning rather than local Git worktrees — even if the broker machine already has the repository on disk.

This means:

  • A GITHUB_TOKEN with at least Contents: Read access is required. Set it as a secret or ensure it is in your local environment:
    Terminal window
    scion hub secret set --grove my-project GITHUB_TOKEN=ghp_xxxxxxxxxxxx
  • SSH credentials are not used for workspace provisioning when Hub mode is active.
  • The CLI will confirm the clone path when starting agents:
    Using hub, cloning repo https://github.com/org/repo.git
  • To use local worktrees instead, run with --no-hub or disable hub integration temporarily.

For full details on workspace strategies, see About Workspaces.

With the Hub connected, you can dispatch agents to Runtime Brokers managed by your team, rather than running them on your local laptop.

The Hub automatically routes tasks to available brokers. You can tag agents to request specific capabilities (e.g., gpu-capable).

If you want to temporarily run agents locally even while connected to the Hub, you can use the --local flag or set hub.local_only: true in your settings.

Teams should manage configuration and secrets centrally on the Hub instead of sharing .env files or hardcoding credentials.

Terminal window
# Set an environment variable for the project
scion hub env set --grove API_URL=https://api.staging.example.com
# Set a secret for the project
scion hub secret set --grove OPENAI_API_KEY=sk-...

Secrets are encrypted and never returned via the API; they are securely injected into agents at runtime by the Runtime Broker.

These can also be managed via the web UI at either the user scope (under the profile) or at the Grove scope (under Grove settings page)

See the Secret & Environment Management guide for details on scoping and projection modes.

Instead of linking a local directory, you can create groves directly on the Hub. This decouples agent execution from your local machine, allowing for remote-only development.

Hub-Native groves allow you to create project workspaces without any external Git repository. The Hub manages the workspace files directly, and you can download or ZIP the workspace via the Web Dashboard.

Terminal window
# Target a Hub-Native grove remotely by its slug:
scion start my-agent --grove my-hub-native-slug "do some work"

You can also create a grove directly from a git repository URL. The agent’s container will clone the repository at startup.

Terminal window
scion hub grove create https://github.com/org/my-project.git \
--name "My Project" \
--slug my-project \
--branch develop

For private repositories, set a GITHUB_TOKEN secret on the grove. The token needs at minimum Contents: Read permission.

Terminal window
scion hub secret set --grove my-project GITHUB_TOKEN=ghp_xxxxxxxxxxxx

Once the grove is created, you can start agents targeting the remote grove directly using the --grove flag with the slug or git URL:

Terminal window
scion start my-agent --grove my-project "implement feature X"

The agent’s container will clone the repository at startup, create a scion/<agent-name> branch, and begin working.

Terminal window
# 1. Create the grove from a git URL
scion hub grove create https://github.com/acme/backend.git --name "Acme Backend"
# 2. Set the GitHub token for private repo access
scion hub secret set --grove acme-backend GITHUB_TOKEN=ghp_xxxxxxxxxxxx
# 3. Start an agent remotely on the grove
scion start my-agent --grove acme-backend "add user authentication"
# 4. Monitor the agent
scion list --grove acme-backend
  • Web Dashboard: Use the Hub’s web interface to view running agents, logs, and status.
  • Remote Attach: You can attach to a remote agent’s terminal session using scion attach, tunneling through the Hub.