Skip to content

Jev directory

Jev Tool Permissions

A tool-permissions layer for the Vercel AI SDK backed by Jev through the Vercel AI Gateway: a pre-flight approval gate that decides auto-approve, ask-human or block, plus tool-list pruning that drops irrelevant definitions to save context tokens.
Stars
5
Language
TypeScript
Reading time
3 min
Published by
Community
Author
nicolasmontone
Last verified
Oct 2026

Highlights

  • Both features sit on a deterministic allow/deny floor that runs first and never calls the model; deny rules are checked before anything reaches Jev.
  • Fail-closed by design: if the Jev call errors or times out, the gate defaults to ask-human - never auto-approve - and pruning keeps every tool definition.
  • Install with npm install jev-tool-permissions ai; ai ^7.0.105 is a peer dependency and the package brings no other runtime dependencies.
  • Auth comes from AI_GATEWAY_API_KEY or a roughly 12-hour VERCEL_OIDC_TOKEN; with the default 'typesafe-ai/jev' model id and neither set, it fails fast.
  • The README prices Jev at roughly $0.04 per 1M input tokens and argues an LLM judge would cost more than the tool call it gates.

Quickstart

bash
npm install jev-tool-permissions ai

Watch out

Copy reviewed against the repo README on 2026-10-15; the captured text is truncated inside the RuleSpec example. GitHub metadata lists no license for this repository, and the price point and cost comparison are the README's own claims, not measurements.

Questions about this entry

Short answers drawn from the linked project or page.

From the Jev guides

Original write-ups on what this entry is for.

From the Jev AI model community

Posts from builders shipping with Jev right now.

Follow @typesafeai