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:
curl -fsSL https://raw.githubusercontent.com/huynvic/albertcode-swe-agent/main/installer/install.sh | shOn Windows, in PowerShell:
irm https://raw.githubusercontent.com/huynvic/albertcode-swe-agent/main/installer/install.ps1 | iexThe 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:
cd your-project
albertcodeThe 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 --resumeopens the last session of this folder.albertcode webopens the same session in the browser.albertcode stopstops 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:
--allalso removes your settings, saved keys and task history.--checkonly 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
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
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
Install for real: the same command without the option. Answer
Proceed? [Y/N], then open a new terminal. - 4
Check what AlbertCode SWE can find, after
albertcode --versionandalbertcode status:albertcode doctor - 5
In your project folder, start
albertcode, leave with/exit, then come back to the same session:albertcode --resume - 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.