Skip to content

Secrets

Armnet Secrets are designed for accessing sensitive information inside Docker containers running on managed robotic cells.

Secrets are always encrypted. Use them for API keys and credentials for platforms such as Hugging Face, Modal, dataset providers, or internal services.

Do not log secret values in your application.

Create a Secret

armnet secret create huggingface-token hf_...

List Secrets

armnet secret list

This lists secret names only. Secret values are never returned by the list API.

Delete a Secret

armnet secret delete huggingface-token

Use a Secret in a Job

Request the secret when submitting a job:

execute(
    image=image,
    embodiment="lerobot/so-101",
    task="assemble_block_tower",
    secrets={"HF_TOKEN": "huggingface-token"},
)

Inside runtime code, you can read it from the environment or from ctx.secrets:

import os

token = os.environ["HF_TOKEN"]
# or
token = ctx.secrets["HF_TOKEN"]