Skip to content
AlbertCode SWE

Module 02 · 10 min

Install, start and update

Install for your user with an installer that checks itself, start AlbertCode SWE in a project, keep it up to date, and remove it cleanly.

By the end of this module you can

  • Install AlbertCode SWE safely, and preview what the installer will do first
  • Start, leave and stop AlbertCode SWE without losing work
  • Update and uninstall, knowing what each keeps and what it removes

AlbertCode SWE installs with one command, for your user only, and nothing changes until you say yes.

Install

On macOS or Linux:

Terminal
curl -fsSL https://raw.githubusercontent.com/huynvic/albertcode-swe-agent/main/installer/install.sh | sh

On Windows, in PowerShell:

PowerShell
irm https://raw.githubusercontent.com/huynvic/albertcode-swe-agent/main/installer/install.ps1 | iex

The bootstrap finds the latest release and downloads the installer for your system. It checks the installer against the release's published SHA-256 checksums, and if they don't match, it stops before running anything. The installer then shows what it found and what it would do, and asks Proceed? [Y/N]. When it finishes, open a new terminal so it picks up the albertcode command.

A few things worth knowing (Installation):

  • It installs AlbertCode SWE in an environment of its own, so your other Python projects are unaffected. You don't need to install Python yourself.
  • Administrator rights are needed only if Git is missing. On Linux, run the installer as yourself, not with sudo.
  • Only the latest release stays published, so you can't install an older version.
  • Alpine and other musl systems are not supported, and there is no Linux installer for ARM processors yet.

Start, leave and come back

AlbertCode SWE works on the folder you start it in:

Terminal
cd your-project
albertcode

The first run starts the background service. If no model is connected, it opens Connect a provider for you.

To leave, type /exit or press Ctrl C twice. Sessions and runs keep going. From there:

  • albertcode --resume opens the last session of this folder.
  • albertcode web opens the same session in the browser.
  • albertcode stop stops the service.

The terminal page lists every way to start.

Update and uninstall

To update, run the install command again. It finds the installed version, shows what will change, and replaces it. Saved provider keys and model choices are cleared the first time a new version starts, so connect your model again with /connect.

To uninstall, run albertcode uninstall. It needs nothing from the internet. It keeps your settings and task history, and tells you where they are:

  • --all also removes your settings, saved keys and task history.
  • --check only shows the plan.

Practise

Match the installer's options

Each option changes what the installer does. Match it to its meaning.

Install with care, then start and stop

Preview first, then install for real, then walk through starting, leaving and coming back.

  1. 1

    Preview the install on macOS or Linux, without changing anything:

    curl -fsSL https://raw.githubusercontent.com/huynvic/albertcode-swe-agent/main/installer/install.sh | sh -s -- --check
  2. 2

    Or on Windows, in PowerShell:

    $env:ALBERTCODE_INSTALL_ARGS = '--check'; irm https://raw.githubusercontent.com/huynvic/albertcode-swe-agent/main/installer/install.ps1 | iex
  3. 3

    Install for real: the same command without the option. Answer Proceed? [Y/N], then open a new terminal.

  4. 4

    Check what AlbertCode SWE can find, after albertcode --version and albertcode status:

    albertcode doctor
  5. 5

    In your project folder, start albertcode, leave with /exit, then come back to the same session:

    albertcode --resume
  6. 6

    Open the same session in the browser, then stop the service with albertcode stop:

    albertcode web

Check your understanding

6 questions. Answer 5 correctly to complete the module. Checked here, in your browser.

  1. 01Right after installing, your terminal says albertcode: command not found. What should you do?
  2. 02On macOS or Linux, how do you make the one-line installer only check and show its plan?
  3. 03After you update AlbertCode SWE, your provider shows as not connected. Why?
  4. 04Which albertcode uninstall option also removes your settings, saved keys and task history?
  5. 05Which of these systems is not supported?
  6. 06What does albertcode start do?