返回 CodeWhale
plugin.json
根目录 / docs / examples / plugins / oauth-provider / plugin.json
1 {
2 "$schema": "https://agent-plugins.org/schemas/plugin.json",
3 "name": "oauth-provider-example",
4 "version": "0.1.0",
5 "description": "A reviewed OpenAI-compatible provider using host-owned OAuth PKCE.",
6 "license": "MIT",
7 "extensions": {
8 "net.codewhale": {
9 "providers": {
10 "example-oauth": {
11 "base_url": "https://api.example.com/v1",
12 "model": "example-chat",
13 "models": ["example-chat"],
14 "http_headers": {"X-Project": "example"},
15 "oauth": {
16 "issuer": "https://identity.example.com",
17 "authorization_endpoint": "https://identity.example.com/oauth/authorize",
18 "token_endpoint": "https://identity.example.com/oauth/token",
19 "client_id": "codewhale-public-client",
20 "scopes": ["models:read", "models:invoke"],
21 "resource": "https://api.example.com/v1",
22 "callback_path": "/oauth/example/callback"
23 }
24 }
25 }
26 }
27 }
28 }
29
29 lines JSON