DDevMentorAI
Copilot CLI Guide

Install and login to Copilot CLI

DevMentorAI backend commands rely on an authenticated Copilot CLI session. Complete this once, then continue with installation.

Quick Summary

  • Install Copilot CLI first.
  • Run copilot and then /login.
  • After successful login, run npx devmentorai-server.

Why Copilot CLI is required

DevMentorAI backend uses your Copilot CLI authentication context. If Copilot CLI is missing or not logged in, backend responses can be limited or fail.

Login step-by-step

Step 1

Open Copilot CLI interactive mode.

bash
$copilot

Step 2

Inside the interactive prompt, run:

bash
$/login

Step 3

Follow the terminal instructions and complete authorization in your browser.

bash
$npx devmentorai-server

Run the backend command only after login success.

Quota and subscription note

If you do not have a paid Copilot subscription, Copilot generally includes a limited monthly premium request quota (commonly referenced as 50 premium requests/month).

If you have a paid subscription, limits and model access depend on your current Copilot plan.

To switch account or manage plan behavior, use terminal auth commands and review the official Copilot documentation.

Open official Copilot docs