Onboarding Wizard

A single interactive CLI flow collects your identity, your LLM of choice, and your bot token — and writes them to disk in the right places.

Run the wizard

bash
studentsync onboard

You can re-run this anytime. It detects existing values and lets you overwrite them individually.

The prompts

FieldPurposeStored in
rollNumberPrinted in the footer of every generated PDF.scholar.json
nameYour full name on the cover page.scholar.json
universityInstitution name + auto-picked branding.scholar.json
llm.providerOne of openai · gemini · openrouter · ollama.scholar.json
llm.apiKeyThe secret used to talk to the provider..env
telegramBotTokenFrom @BotFather..env
googleClientOAuth client for Classroom + Drive..env + token at .config/google.json

Files it writes

  • ~/.config/scholar.json — non-secret configuration (identity, chosen model, formatting preferences).
  • ~/.env — secrets. Never commit this.
  • ~/.config/google.json — the OAuth refresh token, created after the browser-based Google consent flow.
~/.config/scholar.json
{
"identity": {
"rollNumber": "21BCE1234",
"name": "Ayush Vish",
"university": "VIT Chennai"
},
"llm": {
"provider": "gemini",
"model": "gemini-1.5-pro",
"temperature": 0.3
},
"formatting": {
"freezeTheme": "dracula",
"pdfFont": "Computer Modern"
}
}

Keep your .env private

The auto-installer enforces chmod 600 on ~/.env. If you install from source, do it yourself.