Skip to content
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.

  1. Prerequisites: Docker and Docker Compose, plus Python 3.9+
  2. Clone and start:
Terminal window
git clone https://github.com/faramesh/faramesh-core
cd faramesh-core
docker compose up -d
  1. Install the SDK:
Terminal window
pip install faramesh
  1. 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
  1. 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"])
  1. View the result in the web UI at http://localhost:8000.

  2. 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.