otp.com in GitHub Copilot

Add the otp.com section to .github/copilot-instructions.md and Copilot includes the integration steps as context when it works in your repo, then writes the send and verify calls into your code.

Get Your API Key Free
mkdir -p .github && curl -fsSL https://otp.com/ai/files/copilot/copilot-instructions.md >> .github/copilot-instructions.md
GitHub Copilot
Ready
  1. Read the instructions file .github/copilot-instructions.md
  2. Read the API key OTP_API_KEY · server env
  3. Added the send call
    SMSWhatsAppTelegramEmail
  4. Added the verify call POST /otp/verify
Add otp.com phone verification to the signup flow.
GitHub Copilot · Instructions file

Set up otp.com in GitHub Copilot

Create an API key in the panel (API Keys). Start with an otp_test_ key. Add the instructions with the command below, or download it and append it to .github/copilot-instructions.md. Ask for the integration. The agent writes the send and verify calls into your code, with the key read from OTP_API_KEY on the server.

mkdir -p .github && curl -fsSL https://otp.com/ai/files/copilot/copilot-instructions.md >> .github/copilot-instructions.md
Download copilot-instructions.md

Append this section to .github/copilot-instructions.md (the download is the section only, so it does not replace your file). Copilot includes that file as context when it works in the repo.

What to ask once the file is in place

my-app · copilot · 80×24
james@macmy-app% copilot
> Add phone verification to sign-up with otp.com: send a code when the user submits their number, then verify it.
● Reading .github/copilot-instructions.md
● Editing src/auth/signup.ts
✓ Send and verify calls added
EXAMPLE PROMPT

Add phone verification to sign-up with otp.com: send a code when the user submits their number, then verify it.

my-app · copilot · 80×24
james@macmy-app% copilot
> Read https://otp.com/ai/prompt.md and integrate otp.com OTP verification into this project.
● Fetching otp.com/ai/prompt.md
● Step 1: POST /otp/send
✓ Step 2: POST /otp/verify wired in
OR POINT IT AT THE FILE

Read https://otp.com/ai/prompt.md and integrate otp.com OTP verification into this project.

Full integration prompt as Markdown →

Frequently Asked Questions

Is my API key safe?

Keep the key in an environment variable or a secret on your server (OTP_API_KEY), never in the rules file or the prompt, and never commit it. Use a test key (otp_test_) while you build.

Does the agent see the code?

No. The API never returns the code. The user receives it on their phone or in their inbox, and your app verifies what they type against the otp_id from the send call.

How is it billed?

Per verification sent: one charge per code, at the published per-country rate. Verifying is free, and a resend counts as a new verification. Test keys are never charged.