Quickstart¶
For Node.js workflows, use the TypeScript quickstart.
Run research → draft → human approval → publication, then inspect its receipts in about five minutes. You need Git, Python 3.12+, and Docker with Compose already installed; that is everything this path uses.
These instructions use release v0.10.0. Compose pulls the published v0.10.0 images by default. Start at the repository root if you already have a v0.10.0 checkout; skip clone/cd. Release checks are recorded in release verification.
Choose your shell tab and stay in it. On Windows, use native Git and Python in PowerShell; the commands below use Docker in the Ubuntu WSL distribution. Keep the checkout on Windows.
1. Install and start¶
Scripted first approved run¶
The script installs the Research template, starts its simulated workflow, prints and approves the fixture draft, checks publication and verifies the audit chain. It runs against a 300-second budget and reports the elapsed time. This is an automated acceptance check on simulated model routes; the manual steps below let you review the draft yourself. The timer starts once images and dependencies are in place.
From the repository root in Linux/WSL with Python 3.12+, Docker and Compose installed:
# Pull the published v0.10.0 images before starting the clock.
docker compose -f deploy/compose/compose.yaml pull
python3 scripts/first-approved-run.py compose
For kind, also install kind, kubectl and Helm. Use an isolated cluster/namespace named
agentworkflows-quickstart; the script always supplies that context, creates it if absent,
loads the local images and installs the chart from this checkout. This path builds the images from source. Prepare images/chart dependencies:
docker build -t agentworkflows-gateway:quickstart src/inference-gateway
docker build -f sdk/python/Dockerfile -t agentworkflows-worker:quickstart .
helm dependency build deploy/charts/workflows
helm dependency build deploy/charts/agentworkflows
python3 scripts/first-approved-run.py kind
The kind profile deploy/charts/agentworkflows/values-quickstart.yaml uses a local fake provider,
one approval and local research/publish fixtures for credential-free evaluation.
The script stops its temporary port-forward on exit and prints how to reopen the console.
Both scripts keep their containers/cluster/data for inspection. To troubleshoot, inspect
docker compose -f deploy/compose/compose.yaml logs workflow-worker inference-gateway or
kubectl --context kind-agentworkflows-quickstart -n agentworkflows-quickstart get pods.
To check an installation you already run (Compose, Helm on your cluster, or a restored backup), use the
SDK's agentworkflows check instead; it works against any gateway and reports each stage's time:
export AGENTWORKFLOWS_URL=http://127.0.0.1:8080 # your gateway
export AGENTWORKFLOWS_API_KEY=local-development-only
agentworkflows check
A real provider needs --allow-paid. See Prove the install.
On Windows, run the commands above inside WSL, using its own Python environment.
Manual setup¶
git clone --branch v0.10.0 --depth 1 https://github.com/RamazanKara/agentworkflows.git
cd agentworkflows
python3 -m venv .venv
source .venv/bin/activate
python -m pip install ./sdk/python
docker compose -f deploy/compose/compose.yaml up -d --wait workflow-worker temporal-ui
export AGENTWORKFLOWS_API_KEY=local-development-only
git clone --branch v0.10.0 --depth 1 https://github.com/RamazanKara/agentworkflows.git
cd agentworkflows
python -m venv .venv
$env:Path = "$PWD\.venv\Scripts;$env:Path"
python -m pip install ./sdk/python
wsl.exe -d Ubuntu -e docker compose -f deploy/compose/compose.yaml up -d --wait workflow-worker temporal-ui
$env:AGENTWORKFLOWS_API_KEY = 'local-development-only'
Compose pulls the published v0.10.0 gateway, worker and RAG images and their dependencies.
To build the images from this checkout instead, run
docker compose -f deploy/compose/compose.yaml build first; release signatures cover the
published images. --wait waits for gateway, Redis, PostgreSQL, and Temporal
health; the included worker runs every gallery template. The public demo key is a local admin
identity. Team setup separates builders and approvers.
Generated projects pin the SDK's package version (0.10.0).
v0.9.0 includes multi-reviewer approval policies. The trial defaults to one reviewer and seven days. On an existing installation, upgrade the gateway before SDK workers.
The default fake returns canned text and synthetic prices locally. For real generated text, select the OpenAI option now, then continue with exactly the same workflow steps. Research and publish tools are local fixtures in both modes, so publication stays on your machine.
2. Create and run a project¶
These commands work in either shell:
agentworkflows init my-research
cd my-research
agentworkflows runs start ResearchWorkflow --input '@input.json'
You now have editable workflow.py, worker.py, input.json, and input-schema.json, plus a README with
worker instructions. init --help lists research, code-review, support-triage,
weekly-report, incident-summary, document-qa, release-notes,
meeting-actions, and security-questionnaire.
It writes a new directory and leaves existing projects untouched. The built-in worker runs the unchanged templates;
follow Edit your workflow when you change the source.
Copy the returned run_id into the variable below (keep the quotes):
Look for progress.stage: awaiting_approval and read progress.draft. If it is still
working, repeat inspect after a few seconds. A fixture draft is deliberately synthetic.
3. Approve and inspect the receipts¶
After reviewing that draft, in the same shell:
Repeat inspect if the run is still finishing. Success is status: completed, a
result.status: published, and a timeline with research, two model calls, your
approval and publish, plus six notification receipts from the local Slack, webhook and
email fakes. Every entry has a receipt_id. The draft call falls back from OpenAI to Anthropic on purpose. The approval records the identity
of your gateway key. approve --reject instead finishes without publishing.
Open http://127.0.0.1:8080/console/ and sign in with local-development-only to see the
same run, draft, result, timeline, and costs. Expand Prompt and response on a model
step or Arguments and result on a tool step to see
what it sent and received, with redaction and truncation notes. The demo captures redacted
content for seven days; terminal run records expire after 30 days. Receipt hashes contain
no captured text. Temporal history is at http://127.0.0.1:8233 and has its own retention.
Save completed runs before their retention deadline with
agentworkflows runs export --status completed --output runs.jsonl. This follows
cursor pages and includes results, receipts and retained step content. Settings and
the audit log are available to team admins in the console. Run and audit exports
are retained views of current data; see CLI paging and export.
Open Triggers → Run history to inspect runs started by
each schedule or webhook. New launches carry their trigger name through the run page
and receipts. Costs → Export CSV, or agentworkflows usage --output usage.csv,
downloads the current UTC month. The total and provider/workflow rows overlap; use the
total row for the overall figure. Both SDKs support the same history filter and CSV export; see the
reference.
You can also choose Run workflow, select any starter, and fill in its generated form.
Forms come from the workflow policy's inputSchema; workflows without one use a JSON box.
For your edited project, keep workflow.py's schema declaration and the reviewed policy
in sync using input-schema.json. Invalid fields are reported before a run starts.
To verify the retained receipt chain, return to the checkout root:
Expect OK and a nonzero record count. Hash verification detects edits and internal gaps;
external anchors
also detect truncation or a complete rewrite. Save the export before removing the stack.
Try a two-reviewer policy¶
- Sign in to the console with
local-development-only. In Team settings / Research, set Required reviewers to2and Approval expiry (seconds) to3600, then save. - In Members & keys, create a separate key with the Approver role. Keep the key for the second sign-in. Each key is a distinct identity in this local fixture.
- Start a new Research run and approve its draft with the admin identity. The run must still be waiting, showing 1 of 2 approvals received and a deadline.
- Use Switch account with the new approver key and approve the same draft. Inspect the completed run and the two approval receipts. Each identity counts once toward the quorum, and any reviewer's rejection ends the gate.
- To exercise expiry, set it to
60, start another run and leave it waiting. It fails withApprovalExpiredafter its review deadline and skips publication. Reset both settings to their policy defaults when finished. Existing runs keep their saved rules.
Stop the trial¶
From the checkout root, stop and remove this trial's containers and volumes:
Use stop instead of down -v to keep history and budgets. These commands also clean up
when the OpenAI override was selected.
Use a real OpenAI key¶
Optional: from the checkout root after step 1, replace the model route with the included OpenAI override. Read the key into your shell without saving it in the repository:
$secret = Read-Host 'OpenAI API key' -AsSecureString
$env:OPENAI_API_KEY = [System.Net.NetworkCredential]::new('', $secret).Password
$savedWSLENV = $env:WSLENV
$env:WSLENV = (@($savedWSLENV, 'OPENAI_API_KEY') | Where-Object { $_ }) -join ':'
wsl.exe -d Ubuntu -e docker compose -f deploy/compose/compose.yaml -f deploy/compose/openai.yaml up -d --wait inference-gateway
$env:WSLENV = $savedWSLENV
Remove-Item Env:OPENAI_API_KEY
Remove-Variable secret
Continue at step 2. The gateway alias demo-openai now routes directly to GPT-4.1 Mini. Only the gateway receives the real key. This makes paid calls using the model's
documented token rates;
review deploy/compose/openai-model-routing.yaml against your account pricing. The demo
limits each research run to 10,000 tokens / $5 and the team to $50. Use a funded API
account; authentication or quota errors point to account access. The automated walkthrough
uses fakes.
If something goes wrong¶
| Symptom | Next action |
|---|---|
| Docker cannot connect | Start your Docker engine; verify docker info (prefix with wsl.exe -d Ubuntu -e on Windows) |
| Port 8080 already in use | Use the alternate-port commands below before retrying up; keep the other service running |
| 404 Not Found even though Compose is healthy | Another Windows app may own port 8080 while WSL reports success; use the alternate-port commands below |
| CLI not found / wrong Python | Re-enter the environment from step 1; python -m agentworkflows.cli --help also works |
| 401 | Set AGENTWORKFLOWS_API_KEY to the gateway key, not a cloud key; the demo uses local-development-only |
| Invalid JSON / 422 | Edit the scaffold's input.json; pass it as quoted '@input.json' to avoid shell quoting problems |
| Worker unavailable / no draft | Check docker compose -f deploy/compose/compose.yaml logs workflow-worker; start its worker and retry inspection |
| Approval rejected | Inspect the run; an admin or approver approves a draft while it is undecided in awaiting_approval |
| Model, tool, or egress denied | Use the team's approved policy; ask an admin to review it |
| Budget exhausted | Inspect agentworkflows usage; wait for the team window or ask an admin to review the limit |
For an occupied gateway port, from the checkout root in the same shell:
The console is then at http://127.0.0.1:18080/console/. The same existing port mechanism
is available for Temporal (AGENTWORKFLOWS_TEMPORAL_PORT) and its UI
(AGENTWORKFLOWS_TEMPORAL_UI_PORT); add those to the same ignored deploy/compose/.env file if needed.
Next: workflow concepts, edit a template, CLI and SDK reference, or full smoke test and Kubernetes lab.
60-second console walkthrough¶
After the stack is ready, sign in at http://127.0.0.1:8080/console/ with
local-development-only. Open Get started → First-run wizard and click
Start sample workflow. Read the draft on the run page, approve it, and wait for
Completed / Published. Inspect the step timeline and its approval receipt.
The wizard checks the Research policy, model routes, provider credential presence, approved research/publish tools, and nonzero budgets. It selects a ready model rather than a missing-key route. It installs the versioned sample for team admins and uses the normal idempotent run API. Admins and builders start approved policy; approvers and viewers review and inspect. The run itself confirms model access and worker availability.
For a real provider, an unrestricted admin can paste a credential and click Save provider
key for any provider that deployment policy allows. Values are encrypted using the
persistent WORKFLOW_SECRETS_KEY and are write-only: the gateway keeps them out of
responses, logs, and exports. Each save checks the displayed version to protect a concurrent
rotation. The saved team credential takes precedence over its environment default on
every gateway replica. The wizard checks that the credential is present, and the first run
confirms provider access. Until encryption is configured, the wizard links to the operator
setup instructions.
API: GET /v1/team/onboarding; PUT /v1/team/providers/{provider}/key with
{"value":"…","expected_version":0}. Both SDKs expose onboarding() and
Python set_provider_key() / TypeScript setProviderKey().