Skip to main content

Setup

1

Get credentials

Go to the Twitter Developer Portal and create a project and app. Under User authentication settings, enable OAuth 2.0 and set the redirect URI to:
Set the app type to Web App and enable Read permissions at minimum.
2

Configure

lib/kavach.ts

Scopes

Default scopes: users.read, tweet.read
Twitter does not return an email address through the standard OAuth 2.0 flow. KavachOS uses a synthetic non-deliverable address (username@twitter.invalid) as a placeholder. Do not treat it as a real email.

Endpoints

Last modified on April 29, 2026