Installation
All ways to install and run Faramesh Core.
The checked-in runtime is a Go service with SDK adapters, but the docs and README still treat the source-checkout flow as the primary local install.
Docker Compose
Section titled “Docker Compose”The repository ships a sidecar-style example in deploy/docker-compose/docker-compose.example.yml. The topology is simple: one faramesh service runs serve, a sibling agent container shares the Unix socket volume, and both attach to the same runtime state.
services: faramesh: command: - serve - --policy - /policy/policy.yaml - --socket - /run/faramesh/faramesh.sockBare metal / Python
Section titled “Bare metal / Python”The Python SDK resolves its base URL and token from environment or configure():
from faramesh import configureconfigure(base_url="http://localhost:8000", token="dev-token")Relevant env vars from the checked-in SDK and daemon include FARAMESH_BASE_URL, FARAMESH_TOKEN, FARAMESH_RETRIES, FARAMESH_RETRY_BACKOFF, FARAMESH_SOCKET, FARAMESH_POLICY_ADMIN_TOKEN, FARAMESH_STANDING_ADMIN_TOKEN, FARAMESH_SPIFFE_ID, and FARAMESH_CREDENTIAL_VAULT_ADDR.
SDK only
Section titled “SDK only”When you are pointing at a remote instance, install the SDK and set the remote endpoint:
pip install farameshnpm install @faramesh/sdkVerify
Section titled “Verify”The HTTP proxy adapter exposes /healthz, which returns {"status":"ok"}. The docs site’s later reference pages cover the other protocol surfaces that are available in the tree.
Requirements
Section titled “Requirements”The checked-in code paths assume Python 3.9+ on the SDK side and a Go runtime with either SQLite or PostgreSQL-backed persistence in production. See Database Setup and Configuration Reference.
Read Your First Policy and Self-Hosted Deployment.