Skip to content

Run an Agent with caracal run

caracal run starts a local subprocess with Caracal runtime environment variables and profile-backed credentials. Use it for development, demos, and controlled local runs.

  1. Run caracal up.
  2. Open caracal console.
  3. Select guided setup.
  4. Fill in the upstream URL, resource identifier, runtime profile, profile path, secret file, and first request path.
  5. Enable write profile files.
  6. Save the generated profile and secret file.

The generated profile is the source for SDK client constructors and caracal run.

Terminal window
caracal run -- npm start

The child process receives the Caracal variables needed to locate the profile, exchange credentials, and route configured resources through the Gateway.

CheckCommand or surface
Runtime is readycaracal status --ready
Profile is readable`caracal run — env
First request succeedsUse the guided setup first request path.
Audit captured the requestConsole audit or request trace.
SymptomFix
SDK cannot find configConfirm CARACAL_CONFIG points to the generated profile.
Secret file rejectedRestrict file permissions and avoid setting both inline and file secrets.
Gateway routing misses the resourceConfirm resource bindings and upstream prefixes in the profile.
Request deniedCheck policy-set activation, scopes, and audit diagnostics.

Related pages: First Protected Call, Add SDK to Your App, and Audit and Request Traces.