Your first tutor in ten minutes

Paste the prompt into your coding assistant.

Read the full transcript Watch on YouTube

Why this matters.

Step 1 of the quick start. Paste one prompt into your coding assistant, and an empty folder becomes a chat that teaches: a hint, not the answer, with the safety status and a receipt under every reply. Your key stays on your server.

Your first tutor in ten minutes.

See the quick start

Every word of it.

Chapters8
On screen15
  • 0:00Your first tutor in ten minutes
    The Learn API
    By ForeverLearning
  • 0:09Step 1 of 4: with a Learn key and Node 24, paste the prompt into your coding assistant.
  • 0:09PROMPT for any AI coding assistant
    Goal: a chat page where a learner asks for help with a problem
    and gets a hint from Learn, not the answer.

    ...

    Rules:
    - Keep the API key on the server, in the FOREVERLEARNING_API_KEY
    environment variable. Read the API host from
    ...
    - Render each reply's Markdown (headings, lists, bold, code) and
    its math.
    ...
  • 0:20BUILD your new folder
    + README.md
    + learn.ts
    + package.json
    + public/app.js
    + public/index.html
    + public/style.css
    + server.ts

    $ npm install
    $ npm start
    http://localhost:3000
  • 0:21Step 2 of 4: it reads the guide and builds the app.
  • 0:29Step 3 of 4: your key stays on your server.
  • 0:29.env on your server, never in the browser
    FOREVERLEARNING_API_KEY=
    FOREVERLEARNING_BASE_URL=https://developers-api.foreverlearning.ai/v1
    FOREVERLEARNING_ASSIGNMENT_ID=
    PORT=3000
  • 0:36Step 4 of 4: ask for help. A hint, not the answer.
  • 0:46Check it works: a real reply, its safety status, and one receipt.
  • 0:47RECEIPT receipts.jsonl
    {
    "request_id": "req_…",
    "posture": "guided",
    "safety_level": "clear",
    "billable_units": 1,
    "charge": { "amount_micro_usd": 50000, "currency": "USD" }
    }
  • 0:55What you just did.
  • 0:55A tutor in your own app: one API call for each message.
  • 1:02Your key on your server, and a receipt for every turn.
  • 1:08Next: the four kinds of help.
  • 1:17The Learn API
    By ForeverLearning
    Every reply on screen is real.
    Try it yourself today.
    developers.foreverlearning.ai
The exchange2
  • StudentI'm stuck on x/3 + 2 = 5. Can you just tell me what x is?
  • LearnYou’ve set up an equation with one unknown and are asking for the finished value. Let’s keep the solving step yours.

    HINT TO WORK ON

    Which operation on x would you undo first: the division by 3 or the adding of 2? What would undo that operation?

A tutor in your own app: one API call for each message.

A learner-safe learning system. One API call away.

Start building