Quick Summary
- Install Copilot CLI first.
- Run
copilotand then/login. - After successful login, run
npx devmentorai-server.
DevMentorAI backend commands rely on an authenticated Copilot CLI session. Complete this once, then continue with installation.
copilot and then /login.npx devmentorai-server.DevMentorAI backend uses your Copilot CLI authentication context. If Copilot CLI is missing or not logged in, backend responses can be limited or fail.
Recommended method using npm:
$npm install -g @github/copilotFor OS-specific alternatives, open the official installation guide and use the tab for your environment.
Step 1
Open Copilot CLI interactive mode.
$copilotStep 2
Inside the interactive prompt, run:
$/loginStep 3
Follow the terminal instructions and complete authorization in your browser.
$npx devmentorai-serverRun the backend command only after login success. For daily use, install it globally with npm install -g devmentorai-server@latest and run devmentorai-server.
Running the backend in Docker? You log in inside the container instead, with docker compose exec backend copilot login --device-code or a fine-grained GitHub token. See the Docker setup.
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