Skip to main content

Rust SDK

The rotastellar-agent crate provides everything you need to build a satellite agent: the Agent trait, a simulated satellite for testing, an HTTP client for the Console API, and a CLI binary.
License: MPL-2.0 — modified files must be shared, but you can use the crate in proprietary projects.

Installation

Add to your Cargo.toml:
Or clone and build directly:

The Agent Trait

The core abstraction is the Agent trait. It defines the satellite-side execution protocol:

Using SimulatedSatellite

The built-in SimulatedSatellite replays pre-computed CAE event streams with realistic timing. Use it for testing and demos.
The speed_multiplier controls replay speed:
  • 1.0 — real-time (events play at actual orbital timing)
  • 10.0 — 10x faster
  • 100.0 — 100x faster (default for demos)
  • 10000.0 — near-instant (useful for automated tests)

Building a Custom Agent

Implement the Agent trait to run real computations on satellite hardware:

Types

AgentConfig

WorkloadSpec

AgentEvent

AgentTelemetry

AgentError

CLI

The crate builds a CLI binary with two subcommands:

simulate — Replay a plan file

run — Long-running poll mode

The agent will register, then loop: poll → execute → report → sleep → repeat.