Documentation · Complete User Guide

LightCode User Guide

A complete, practical manual covering every workflow in LightCode—from connecting your first AI accounts and choosing execution modes to running parallel agent teams, managing quotas, and working across devices.

1. Quick start & workspace projects

LightCode runs directly on your computer so your folders and files stay right where you keep them. There is no cloud lock-in or mandatory repository upload.

  1. Install & launch: Download the LightCode installer, open the app, and start immediately: the first day includes every Pro feature, then LightCode continues on the Free plan.
  2. Add a project folder: Click New Project and select any folder on your drive. You can also attach additional trusted folders if your project spans multiple directories.
  3. Connect your AI accounts: Open the Accounts & Quota panel to sign in to existing sessions on your machine or add new accounts.
  4. Start a thread: Open one or more threads inside your project tab and describe what you want to build, fix, or review.

Install from the terminal

Prefer the command line? One command downloads the latest release, checks its SHA-512 checksum against the release feed, and installs it. Your projects and data are never touched.

Windows 10 / 11 (PowerShell)

irm https://lightcode.live/install | iex

Silent install for the current user (no admin rights). Open LightCode from the Start menu afterwards. Installed copies update themselves.

macOS (Apple Silicon and Intel)

curl -fsSL https://lightcode.live/install | sh

Installs LightCode.app into /Applications (or ~/Applications when that is not writable). Start it with open -a LightCode. The app is not Apple-notarized yet, so macOS does not update it on its own: run the same command again to update.

Linux (x64)

curl -fsSL https://lightcode.live/install | sh

Installs the AppImage under ~/.local/opt/lightcode, adds a lightcode command to ~/.local/bin and an app-menu entry, no root needed. It updates itself in the background. On Debian or Ubuntu you can install the .deb package instead:

curl -fsSL https://lightcode.live/install | sh -s -- --deb

Other options

# download and verify only, install nothing
curl -fsSL https://lightcode.live/install | sh -s -- --dry-run

# uninstall (macOS / Linux)
curl -fsSL https://lightcode.live/install | sh -s -- --uninstall

# uninstall (Windows)
& ([scriptblock]::Create((irm https://lightcode.live/install))) -Uninstall

Remote control from the terminal

The installer also adds a lightcode command (open a new terminal after installing). Remote control is a Pro feature; LightCode starts in the background if it is not running.

lightcode remote on             # turn on remote control and print a link for your phone
lightcode remote on --tunnel    # also open an internet link (works outside your Wi-Fi)
lightcode remote status         # links, trusted devices, requests waiting for approval
lightcode remote pair           # print a new one-time pairing link
lightcode remote approve --all  # trust the devices that asked to connect
lightcode remote off            # turn it off

Open the printed link on your phone, then run lightcode remote approve on this computer to trust it. lightcode remote deny <id> refuses a request and lightcode remote revoke <id> removes a trusted device.

Want to read the script before running it? Open install.sh or install.ps1 in your browser. If an install fails with a checksum error, nothing is installed; try again or email [email protected].

Tip — Project tabs: Keep multiple projects open in the top workspace bar and hide inactive project tabs anytime without deleting your chat history or settings.

2. Connecting AI accounts & model providers

LightCode connects your favorite AI coding agents, model ecosystems, and custom endpoints into one unified interface—so you can combine as many AI coding agents as your workflow needs without switching apps.

Platform Typical strength Connection method
Claude Deep reasoning, careful edits, and clean long-form code structure Existing machine login, isolated profile login, or API key
Codex Fast implementation, refactoring, and automated testing flows Existing machine login, isolated profile login, or API key
Gemini Broad context understanding, planning, and rapid exploration One-click browser login session or API key
OpenCode Connects DeepSeek, Kimi, Qwen, GLM, MiniMax, Mistral, Groq, and OpenRouter Free built-in models or provider API keys (Global & China regions)
Antigravity Autonomous multi-step execution and full-stack orchestration Existing machine login or isolated account profile
More AI Agents & Custom Endpoints Extensible connection to additional AI coding agents, OpenRouter, Ollama, vLLM, and local models Custom base URL + model name or provider integration

How to add multiple accounts for the same provider

  1. Open Accounts & Quota in the top toolbar.
  2. LightCode automatically detects any existing login already present on your computer so you can start right away.
  3. To add extra accounts for backup, click Add Account, give it a friendly label (for example, Work or Personal), and complete the sign-in flow in its own isolated profile folder.
  4. Drag or set account Priority numbers to control which account LightCode uses first.

3. Quota tracking, context handoff & auto-resume

LightCode is engineered so usage limits never break your concentration. The app tracks both 5-hour and weekly usage windows across your accounts, along with model-specific limits.

  • Automatic account failover: When an active account hits its usage limit or enters cooldown, LightCode immediately switches to your next available account according to priority.
  • Context-preserving handoff: When switching from one account to another mid-thread, LightCode automatically carries over a structured summary of the conversation and modified files so the new account continues seamlessly without losing track.
  • Model-family fallback: If one model tier on an account reaches its cap while other models on the same account remain available, LightCode adapts automatically.
  • Auto-resume when limits reset: If every connected account runs out of usage during a long job, LightCode queues the task and automatically resumes execution as soon as the earliest account quota window resets.
  • Crash & restart recovery: If your computer restarts or the app closes mid-turn, LightCode detects the interrupted run on startup and resumes it cleanly.

4. Execution modes, @file mentions & prompt queue

Every thread gives you fine-grained control over how autonomously an agent works and how you feed instructions into it.

Three execution modes

Mode How it behaves Best used when
Plan The agent researches your files and proposes a clear step-by-step plan for your approval before making edits Starting complex features, architecture changes, or delicate refactors
Accept Edits The agent writes and updates project files directly while pausing for confirmation on sensitive shell commands Everyday interactive coding and feature development
Auto The agent executes end-to-end autonomously across files and tools until the goal is complete Well-defined tasks, batch work, and hands-off parallel runs

Everyday composer shortcuts

  • @ File & folder mentions: Type @ in the message box to search and attach specific files or directories from your project so the agent focuses on the exact right code.
  • / Slash commands & skills: Type / to trigger built-in commands, project-specific commands, and installed skills without typing long instructions.
  • Image & file attachments: Paste screenshots or attach reference files directly into your prompt to fix visual bugs or build from mockups.
  • Prompt Queue: You do not have to wait for a running turn to finish before typing your next thought. Send follow-up prompts anytime—LightCode places them in a visual queue and runs them in order automatically.
  • Touched files tracker: Every thread lists the exact project files created or modified during that session so you can inspect changes at a glance.

Human-in-the-loop approvals

Whenever an agent in Plan or Accept Edits mode needs your input—whether to approve a plan, allow a command (Allow once or Always allow for this session), or answer a multiple-choice clarification question—a clean prompt appears right inside the thread and highlights the thread badge with an attention indicator.

5. Parallel threads, Task Profiles & smart routing

Open as many threads as you need inside a project—one thread can build a user interface while a second writes backend logic and a third investigates a bug.

Using Task Profiles & Auto Routing

When you set a thread's provider to Auto, LightCode uses Task Profiles to pick the best agent and model for the job:

  1. Define profiles: Open Task Profiles to configure ordered chains of providers, models, and reasoning effort levels for different types of work (such as UI & Frontend, Deep Logic & Architecture, or Quick Edits).
  2. Automatic classification: On your first prompt in an Auto thread, LightCode identifies which profile fits your request best—using fast keyword matching and lightweight classification—and locks that profile for the thread so context stays consistent.
  3. Ordered failover chain: Within the chosen profile, LightCode tries your preferred provider/model first and steps down the profile's fallback list automatically if an account is busy or out of quota.
  4. Quality feedback stats: Rate replies with thumbs-up or thumbs-down to track success rates, response times, and token usage across profiles and models.

6. Agent-to-agent collaboration, Terminal & Browser

LightCode equips your agents with shared workspace tools so they can collaborate like a real engineering team and verify their own work.

  • Spawning teammate agents: For large goals, a lead agent can spawn dedicated teammate sessions to work on independent slices in parallel. Teammates report their findings back to the lead thread and auto-archive cleanly when done.
  • Shared project knowledge: Store persistent project conventions, architecture notes, and lessons learned so every agent working on the project follows the same rules automatically.
  • Integrated per-thread Terminal: Agents can run build, test, and inspection commands in managed background terminals tied to the project directory, with live output logs visible anytime.
  • Built-in Browser Preview: Agents can open and interact with your local web server (`localhost`), inspect rendered layouts, click elements, and capture screenshots to verify UI changes visually.

7. Multi-device access & remote SSH hosts

LightCode lets you work seamlessly across all your personal devices and remote development servers.

Monitoring & guiding from laptop, tablet, or phone

  • Turn on Remote Access in the app to open a secure, encrypted web link to your running LightCode workspace.
  • Check live streaming output, answer approval prompts, or queue new tasks from your phone or laptop while away from your main desk.

Working on remote SSH servers

  • Open Hosts (SSH) to connect a remote Linux or cloud development server using SSH key, agent, or password authentication.
  • Assign any project to run on an SSH host—LightCode can sync your CLI login credentials and execute agent sessions directly on the remote machine while you control everything from your local interface.

8. Collaborating with AIVIN Platform

LightCode supports two parallel input flows: direct prompts from you (`REQUEST`) and structured tasks from AIVIN Platform (aivin.vn).

  • AIVIN Platform (Direction & Quality): Manages projects, organizes tasks, controls quality, and ensures deliverables stay faithful to the concept and expected outcomes.
  • LightCode (Local Execution): Receives scoped tasks and executes them at maximum speed on your machine using parallel agents, then returns verified results.

9. Performance & memory guard

Running multiple AI agent CLIs simultaneously can consume significant system memory if left unchecked. LightCode includes a built-in Resources & Memory Guard:

  • Concurrency limit: Automatically scales the maximum number of simultaneous agent runs based on your computer's RAM (or lets you set a custom limit in Resources).
  • Per-run memory cap: Protects your system by stopping runaway process trees that exceed your configured memory threshold.
  • Selective MCP loading: Choose which personal MCP servers load into each run so parallel threads stay fast and lightweight.

10. Free plan, Pro & renewal

Every installation of LightCode starts with a 1-day Pro trial so you can experience parallel threads, account failover, and agent collaboration on your own projects first. After that you keep using LightCode on the Free plan: up to 2 accounts, 8 sessions per project, 3 days of History, and no remote access. Pro removes those limits. Existing accounts and sessions are never deleted when you move to Free; you just can't add more beyond the limits.

  1. Upgrade to Pro for 3 months: Click Upgrade account on lightcode.live (or open License inside the app) and pay $9.90 with PayPal or card (249,000 VND by VietQR inside the app in Vietnam). Your license key is emailed to you; enter it in the app. One license works on one device at a time, and entering the key on another computer moves it there. It lasts 90 days. Nothing is charged automatically: when the period ends, buy again from the same screen to renew.
  2. Instant automatic activation: When you buy from License inside the app, LightCode verifies your purchase and activates that computer automatically—no license key to copy or paste.
  3. Restore on any new computer: On another personal machine, open License → Restore Purchase, enter the email address used at checkout, and enter the 6-digit verification code sent to your inbox. The license moves to that computer.

Need help with setup, accounts, or licensing? Email our team anytime at [email protected].