GETTING STARTED
Quickstart (5 minutes)
Get Faramesh running and govern your first agent tool call.
The README’s source-checkout path starts with a local install, then a governed run. For this docs site, the fastest path is the same sequence the core repo uses in its quick-start flow.
- Prerequisites: Docker and Docker Compose, plus Python 3.9+
- Clone and start:
git clone https://github.com/faramesh/faramesh-corecd faramesh-coredocker compose up -d- Install the SDK:
pip install faramesh- Write a minimal policy. The repo’s checked-in YAML examples use this shape:
faramesh-version: "1.0"agent-id: "payment-agent"default_effect: deny
rules: - id: deny-shell match: tool: "shell/*" when: "true" effect: deny reason: "payment agents must not use shell"
- id: permit-customer-read match: tool: "read_customer" when: "true" effect: permit- Submit a governed action from Python:
from faramesh import configure, submit_action
configure(base_url="http://localhost:8000", token="dev-token")action = submit_action("payment-agent", "http", "get", {"url": "https://example.com"})print(action["status"], action["decision"], action["reason"])-
View the result in the web UI at
http://localhost:8000. -
What happened: the action was canonicalized, hashed, evaluated against policy, scored for risk context, and written into the Audit Ledger before execution or deferral.
Next: Installation and Your First Policy.