Code Example


from okap import OkapClient

client = OkapClient("https://vault.okap.dev")
token = client.request_access(provider="openai", models=["gpt-4"])


ai = OpenAI(api_key=token.key, base_url=token.base_url)

The Specification

Token Request

Apps request scoped access: provider, models, limits, expiration.

API Proxying

Vault proxies requests, injecting keys and enforcing limits.

Revocation

Users revoke any token instantly without rotating keys.

Read the full specification →

FAQ

Do apps need to support OKAP?

Yes. Apps implement the OKAP client instead of asking for raw keys. The more apps adopt it, the more useful it becomes.

Can I use this with Cursor, Claude Desktop, e…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help