Quickstart¶
Get from zero to a hatched agent in five steps. Assumes you have installed PyNydus and gitleaks.
1. Write a Nydusfile¶
Create a Nydusfile in your project directory:
SOURCE openclaw ./my-agent/
REDACT true
See Nydusfile DSL for the full DSL reference.
2. Spawn an Egg¶
CLI:
nydus spawn -o agent.egg
Python SDK:
from pathlib import Path
from pynydus import Nydus
ny = Nydus()
egg = ny.spawn() # reads ./Nydusfile
ny.save(egg, Path("agent.egg"))
3. Inspect¶
nydus inspect agent.egg --secrets --logs
4. Hatch into another runtime¶
During spawn, real secrets and PII were replaced with placeholders like
{{SECRET_001}}. Before hatching, generate a template listing the secrets
the Egg needs, fill in real values, then hatch:
nydus env agent.egg -o agent.env
# edit agent.env with real values
nydus hatch agent.egg --target letta --secrets agent.env
Or with the Python SDK:
from pynydus.common.enums import AgentType
result = ny.hatch(egg, target=AgentType.LETTA, secrets="agent.env")
print(result.files_created)
Next steps¶
Nydusfile DSL: control what gets spawned
Security: how secrets and PII are protected
CLI Reference: full CLI reference
Configuration: environment variables