Orgs, projects, and plans
ToolFence Gate supports multi-team workspaces for hosted and community self-hosted setups.
Public pricing: toolfence.ai/pricing. Scan stays free OSS forever (no login, caps, or Pro rules). This doc covers Gate (and Radar entitlements).
Model
Org (plan: free | pro | business)
├── Members (owner / admin / member)
├── Invites (email + one-time token)
├── Entitlements (gate; optional radar)
└── Projects
└── Tool calls carry project_id → usage metering + Inbox filter
| Plan | Hosted intent | Public price |
|---|---|---|
| Scan | OSS CLI + GitHub Action — not a Gate plan | $0 forever |
| Gate Free | 1 seat, email notify, 100 clearances/mo, 7-day audit; no Slack interactive / webhooks / SSO / Scan import | $0 forever |
| Gate Pro | 25 seats, Slack interactive, 90d audit, webhooks, Scan→Gate import, 10k clearances/mo | $99/mo |
| Business | SSO/OIDC + SCIM, 100 seats, 1y audit, 1M clearances; Radar included | $299/mo |
| Radar add-on | Cost + risk timeline on Gate telemetry (Pro) | +$79/mo · included in Business |
Over Free allowance / gated feature → HTTP 402 (hard stop). Prepaid credit wallets are not v1 — optional later.
Radar is never sold alone — it needs an active Gate workspace.
Enforced on hosted (TOOLFENCE_HOSTED=1): seat caps, Slack interactive, signed webhooks, Scan→Gate import (POST /v1/policy/import-scan), SSO/SCIM settings, audit retention prune, clearance metering. Self-host leaves gates open for local try.
Onboarding
Sign up at app.toolfence.ai (hosted prefers Create account), or:
curl -s -X POST http://127.0.0.1:8000/v1/auth/signup \
-H 'Content-Type: application/json' \
-d '{"username":"you","password":"••••••••","org_name":"Acme"}'
Returns a session token, org_id, and project_id.
Agent wiring
@protected_tool(
risk="high",
backend_url="https://app.toolfence.ai",
api_key="…",
project_id="…",
)
def send_refund(...): ...
Pending approvals under an org count toward the monthly free-tier limit. Over limit → HTTP 402.
Scan → Gate import
Conversion path (no Scan paywall on Scan; Gate import is Pro+ on hosted):
npx toolfence-scan . --emit-gate-rules --output gate-rules.json- Sign in at
app.toolfence.ai→ Rules → Import Scan rules (orPOST /v1/policy/import-scan) - Merge deny tools/tags/overrides into live policy; Free receives 402 until upgrade
Full walkthrough: Scan then Gate.
Invites
- Org admin creates an invite (
POST /v1/orgs/{id}/invites) with email + role - Invitee signs up or signs in, then accepts the invite token
Billing
Org admins upgrade Free → Pro / Business when Stripe is configured (TOOLFENCE_HOSTED=1 on Fly).
| Env | Purpose |
|---|---|
TOOLFENCE_STRIPE_SECRET_KEY |
Stripe API |
TOOLFENCE_STRIPE_PRICE_PRO / _BUSINESS (legacy _ENTERPRISE alias OK) |
Price IDs |
TOOLFENCE_STRIPE_PRICE_RADAR |
Optional Radar add-on (+$79 on Pro) |
TOOLFENCE_STRIPE_WEBHOOK_SECRET |
Webhook verification |
Webhook endpoint: POST /v1/billing/stripe/webhook.
Radar: Stripe add-on on Gate Pro, or included in Business — never Radar-only.
Hosted mode
Set TOOLFENCE_HOSTED=1 so GET /v1/cloud/info reports hosted mode and the login gate prefers signup.
Community self-host
Allowed for transparency and local try (typically 1 operator, short audit, no Slack interactive).
Production teams should use hosted Pro/Business. Full-parity paid Enterprise self-host / BYOC is a later sales SKU — not day-one.
Self-host ≠ Pro.
Org SSO / SCIM
Live today
- Global operator SSO: env
TOOLFENCE_OIDC_*— OIDC. - SCIM Users API (Business): issue a token in Team, point IdP at
/scim/v2— SCIM +scripts/scim_smoke.sh.
Roadmap (honest)
- Team → OIDC issuer URL is stored via
PUT /v1/orgs/{id}/settingsfor IT notes / future per-org SSO. It does not change login today. SSO for customer orgs is a Business entitlement on hosted.