Skip to content

Use Examples

Examples show Caracal integrated into concrete applications and automation scripts. Use them after the first tutorials when you want runnable code that matches a specific integration job.

GoalStart hereCode path
Need a local protected target for the first Gateway call.Run Echo Upstreamexamples/echoUpstream
Want to automate zone setup from a script or pipeline through the Control API.Bootstrap Control Stateexamples/controlBootstrap
Need to prove a provider-backed resource is ready.Check Provider Readinessexamples/providerPreflight
Need to turn a denial into a safe policy fix.Iterate Policy Safelyexamples/policyIterate
Want to launch a plain CLI agent with injected provider credentials.Launch Research Agentexamples/ResearchAgent
Want a full app reference lab with agents, providers, Gateway, STS, and Console inspection.Run Lynx Capitalexamples/lynxCapital
  1. Start with Run Echo Upstream if you have not completed a Gateway-mediated request yet.
  2. Use Bootstrap Control State when automation should own zone setup instead of manual Console clicks.
  3. Run Check Provider Readiness before the first real provider-backed Gateway call.
  4. Use Iterate Policy Safely when an audit denial needs to become a tested policy change.
  5. Try Launch Research Agent to see caracal run inject provider-native credentials into an existing-style CLI process.
  6. Study Run Lynx Capital when you need a full app topology and live Console inspection path.
  • Start Caracal through the released runtime and Console path described by the example.
  • Use Console for zones, applications, providers, resources, policies, control keys, and runtime profiles.
  • Keep example fixtures inside their own examples/<name> directory.
  • Run each example’s offline tests before adapting it.
  • Do not commit provider secrets, admin tokens, or real third-party credentials.