# Fapi

> Fapi is an open-source agent skill for security. Guides building or reviewing FAPI 2.0 OAuth servers, clients and resource servers. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/ScaleDockHQ/better-supabase/tree/main/.agents/skills/fapi
- **Repository:** https://github.com/scaledockhq/better-supabase
- **GitHub stars:** 5
- **License:** MIT
- **Skill name:** fapi
- **Collection:** https://github.com/ScaleDockHQ/better-supabase
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-02

## About

This skill walks an agent through configuring or auditing an authorization server, client or resource server against the OpenID FAPI 2.0 Security Profile for financial-grade APIs. It follows a step-by-step workflow covering version and profile selection, authorization server setup, client behaviour, resource server checks, cryptography rules and key distribution, with a pinned list of specifications and RFCs it draws from.

The agent can also add FAPI 2.0 Message Signing when non-repudiation is required, covering signed request objects, JARM responses, signed introspection and ID token verification. Draft-stage FAPI-CIBA and Grant Management guidance is included, pinned to the revisions it cites, along with notes on migrating from FAPI 1.0 and preparing for the OpenID conformance suite.

The skill expects the user to name their role, target profile and sender-constraining and client authentication choices, or to be asked for them. It runs no scripts and relies on the agent reading its reference files; the material is written for a developer familiar with OAuth 2.0 and JOSE.

## When your agent uses it

> FAPI 2.0: high-security OAuth profile for financial-grade APIs. Use when building or reviewing an authorization server, client or resource server that must meet the OpenID FAPI 2.0 Security Profile or FAPI 2.0 Message Signing: PAR, PKCE S256, sender-constrained tokens with DPoP or mTLS, private_key_jwt or mTLS client authentication, PS256, ES256 or Ed25519, the RFC 9207 iss parameter, short code lifetimes and strict redirect URIs. Also use it to migrate from FAPI 1.0 Baseline or Advanced, to apply JARM, FAPI-CIBA or Grant Management, and to prepare for OpenID FAPI certification. Triggers: FAPI, FAPI2, financial-grade API, open banking, open finance, high-security OAuth, PAR, DPoP, MTLS, JARM, signed request object, x-fapi-interaction-id, CIBA, grant_id.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/ScaleDockHQ/better-supabase/tree/HEAD/.agents/skills/fapi)
- [License: MIT](https://github.com/ScaleDockHQ/better-supabase/tree/HEAD/.agents/skills/fapi)

## Features

- **FAPI 2.0 Security Profile rules:** Invariants for authorization servers, clients and resource servers, such as PAR, PKCE S256 and confidential clients.
- **Sender-constrained tokens:** Guidance on binding access tokens with DPoP or mTLS and verifying that binding at each party.
- **Client authentication checks:** Covers private_key_jwt and mTLS client authentication and the audience rules for client assertions.
- **Cryptography and key handling:** Allowed algorithms, minimum key sizes, JWKS publication and kid handling.
- **Message Signing and JARM:** Signed request objects, JARM responses, signed introspection and ID token verification.
- **FAPI 1.0 migration:** Lists the differences from FAPI 1.0 Baseline and Advanced and the steps to upgrade to FAPI 2.0.
- **Conformance suite preparation:** Identifies the test plans per configured option for OpenID certification of servers and clients.

## Good for

- Make this authorization server comply with the FAPI 2.0 Security Profile
- Review a client implementation for PAR, PKCE and iss checking
- Check that a resource server rejects unbound or query-string access tokens
- Migrate an existing FAPI 1.0 Advanced deployment to FAPI 2.0
- Add JARM signed authorization responses to an open banking API
- Prepare an OAuth server for the OpenID FAPI conformance tests

## Install

### Claude Code

This skill ships in the `better-supabase` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add ScaleDockHQ/better-supabase
/plugin install better-supabase@better-supabase
```

Or copy only this skill to `~/.claude/skills/fapi`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/fapi &&
cp -R "$tmp/.agents/skills/fapi" ~/.claude/skills/fapi &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/fapi` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/fapi` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/fapi &&
cp -R "$tmp/.agents/skills/fapi" ~/.agents/skills/fapi &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/fapi` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/fapi` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/fapi &&
cp -R "$tmp/.agents/skills/fapi" ~/.cursor/skills/fapi &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/fapi` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/ScaleDockHQ/better-supabase.git --path .agents/skills/fapi
```

Or copy the folder to `~/.gemini/skills/fapi` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/fapi`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/fapi &&
cp -R "$tmp/.agents/skills/fapi" ~/.copilot/skills/fapi &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/fapi` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git
```

Then copy `better-supabase/.agents/skills/fapi` into your agent's skills folder as `fapi`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to know before starting?

It expects the role (authorization server, client or resource server), the target FAPI 2.0 profile, whether Message Signing is in scope, and the chosen sender-constraining and client authentication methods. It asks for these if they are not given.

### Does it cover FAPI 1.0 as well?

Yes. It describes FAPI 1.0 Baseline and Advanced as legacy and includes an upgrade path to FAPI 2.0, building FAPI 1.0 only when an ecosystem still requires it.

### Does the skill run scripts?

No scripts are included. The skill consists of a SKILL.md and reference documents that guide the agent's work.

### Which drafts are covered?

FAPI-CIBA and Grant Management are covered as Implementer's Drafts pinned to ID1, and the skill applies them only when asked.

### How do I install Fapi in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/fapi to use it in all your projects, or to .claude/skills/fapi in one project. Or install the better-supabase plugin, which includes it: /plugin marketplace add ScaleDockHQ/better-supabase, then /plugin install better-supabase@better-supabase.

### Does Fapi run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Fapi?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Fapi?

The closest alternatives to Fapi are API security auth pattern, API security, Auth and rbac, Gnap and Authzen.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [API security auth pattern](https://ai-powered.com/skills/api-security-auth-pattern): API security auth pattern is an open-source agent skill for security.
- [API security](https://ai-powered.com/skills/api-security): API security is an open-source agent skill for security.
- [Auth and rbac](https://ai-powered.com/skills/auth-and-rbac): Auth and rbac is an open-source agent skill for security.
- [Gnap](https://ai-powered.com/skills/gnap): Gnap is an open-source agent skill for security.
- [Authzen](https://ai-powered.com/skills/authzen): Authzen is an open-source agent skill for security.
- [API compliance checker](https://ai-powered.com/skills/api-compliance-checker): API compliance checker is an open-source agent skill for security.
- [Implementing hardware security key authentication](https://ai-powered.com/skills/implementing-hardware-security-key-authentication): Implementing hardware security key authentication is an open-source agent skill for security.
- [Sh kb auth](https://ai-powered.com/skills/sh-kb-auth): Sh kb auth is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/fapi
