Sol documentation

This page covers using the Sol v0.2.0 betas. The design documents are at the end. Back to Sol.

Setup

Install Sol (see Install) and run sol. It sets everything up on its own, starts in the background and opens Sol in your browser, already signed in. On a machine with no Sol yet you get the setup page first, with three choices:

  • Start new: this is your first Sol device. Sol names you after your OS account and creates the synced folder ~/SolDrive.
  • Add to my Sol: this machine becomes another device of a Sol you already have.
  • Restore from backup words: you lost your devices and have your 24 words.

sol open opens Sol again later; sol open files opens one app. Sol also appears in your app menu, and sol autostart on starts it when you log in.

Devices

Your devices are all you: they share your files, notes, tasks and calendars.

  1. On a device you already have, open Devices, then Add my device. A QR code and a link appear.
  2. On the new device choose Add to my Sol (the setup page on a computer, the first screen of the Android app) and scan the code with its camera, or paste the link.
  3. Wait for “Joined”. The new device appears under Devices and starts syncing.

From a terminal: sol invite --join prints the link on the existing device; on the new machine run sol init --join, start it, and give it the link with sol pair <link>. A lost device can be removed from Devices.

People

A person is someone else with their own Sol.

  1. Open People, then Add a person. Show them the QR code or send the link.
  2. They scan or open it and confirm, and you become contacts. From a terminal: sol invite prints a link, sol pair <link> accepts one.
  3. A person’s page lists their devices, what each of you shares, and a privacy switch.

For a contact who should never learn where you are, switch them to anonymous on their page, create the link with sol invite --anonymous, or run sol people set <name> --anonymous. An anonymous contact talks to you over Tor only, in both directions. --buddy puts a contact back on every transport. List your contacts with sol people.

Sol picks the best path to each device (WireGuard, then direct TLS, then Tor) and tries again when the network changes. Direct paths show a contact your IP address; Tor does not.

The apps

Each app does one job and keeps your data in a form you can take with you.

  • Files is the folder ~/SolDrive, the same on all your devices. Use it with any program. Folders can be kept on the device or online only. If two devices edit the same file, text files are merged and anything overlapping becomes a conflict copy you can resolve. The viewer shows images, video, audio and PDF, and you swipe or use the arrow keys to move through a folder.
  • Notes are Markdown files in SolDrive/Notes: live preview, [[wiki links]] with backlinks, #tags, checklists, images, and fast search.
  • Tasks has lists, due dates, repeats, flags and subtasks. Quick add understands “call mom tomorrow 9am #family”. Export a list as a Markdown checklist, import one back.
  • Calendar has day, week, month and list views, time zones, repeating events and alerts. Import and export .ics. For a desktop calendar app (Thunderbird, GNOME Calendar, Evolution), sol do calendar.subscription lists read-only .ics files kept current on this device.

Each app can be installed as a web app (Chrome, Edge or Brave: Install), has its own entry in the app menu, and on Android its own home-screen icon. Appearance (light, dark or auto, accent colour, density, wallpaper) is in Settings and applies to every app on every device.

Sharing

  • A folder: in Files, share a folder with a person as read or write. It shows up for them under Shared (sol do files.share --path Photos --people ben --mode read).
  • A task list or a calendar: share it from its own app, as read or write (tasks.share, calendar.share). You can also invite people to a single event.
  • Unsharing stops new changes reaching them. Copies they already have stay with them.
  • A port: sol service add blog 8080 --http --with ben shares a local web app (or any TCP port, such as SSH) with a person. They open it with sol tunnel open ana blog, and it appears on their own machine at 127.0.0.1:<port>. sol service list and sol tunnel list show what is shared and open.

Sending a file

Sending is for a file you want one person to have, like AirDrop. In Files open a file and choose Send to a person (or use sol do files.send). They get one approval in their Inbox; if they accept, the file is saved under Received/<your name>/ and you see the result under what you sent. It sends files, not folders: share a folder to give someone a whole one.

Backup and restore

Your 24 words are your identity. Write them down (Settings, Backup words, which asks you to confirm) and keep them somewhere safe.

  • Restore on a fresh machine: install with SOL_NO_START=1, then sol restore --words "...", or choose Restore from backup words on the setup page or in the Android app. You come back under the same person ID, so your contacts keep trusting you.
  • The words do not contain your files. Files come back by syncing from any of your devices that still has them. If every device that held a file is gone, so is the file. Keep one device that is always on (a home server, a NAS, an old laptop) so there is always a copy.
  • sol reset --confirm <name> removes Sol from this machine (the identity is archived and the synced folder is kept), then sets up again.

Agents and sol do

Every user-visible operation is an action, so the command line is the interface for scripts and agents:

sol do --help                      # apps and how many actions each has
sol do --help tasks                # the actions of one app
sol do tasks.add --help            # one action: arguments, effect, whether it needs approval
sol do tasks.add --quick "Pay rent tomorrow 9am" --list Home
sol do calendar.agenda --json      # machine-readable
sol do files.delete --paths Old --dry-run   # show what it would do, change nothing

When an argument clashes with a global flag (an action’s person), pass the arguments as JSON: --args '{"person":"ben", ...}', or --args - to read them from standard input. Exit codes: 0 done, 1 failed, 2 bad arguments, 3 waiting for your approval.

Agent keys. Give an agent its own key with only the powers you choose, in Settings under Agents or from the terminal:

sol agent new reader --scope 'notes.read' --scope 'notes.search' --days 30 --out reader.key
SOL_AGENT_KEY=./reader.key sol do notes.search --query lisbon --json
sol agent list
sol agent renew reader --days 30
sol agent revoke reader

A key has scopes (action names or patterns such as notes.*) and an expiry, and is revoked on all your devices at once.

Approvals. Destructive actions (delete) and sending files to people need your approval when an agent asks. The call waits; you approve or deny it in the Inbox: sol inbox, then sol inbox approve <id> or sol inbox deny <id>, or in the web app, or from an Android notification. An agent cannot approve its own request. sol events streams Inbox and app events as they happen.

Notifications

Sol’s notifications are local: there is no push service and nothing is sent to a third party.

  • Desktop: Inbox items appear as system notifications (notify-send on Linux, osascript on macOS, a toast on Windows). sol notifications on|off|status controls this device.
  • Android: each app gets its own notification channel, and approvals have Approve and Deny buttons. You are notified while the Sol node is running; things that happened while the phone was offline are notified when it reconnects.

Troubleshooting

sol status        # this device, your people, which transports are up, sessions
sol logs -n 100   # what the background daemon logged;  sol logs -f follows
sol restart       # restart the background daemon
sol version       # this binary's version, and the running Sol's when they differ
  • A contact shows offline. Check sol status: a session appears once a path works. First contact over Tor can take a while; direct paths are used when they work. Both sides need Sol running.
  • Sync seems stuck. In Files open Sync (or run sol do files.sync) to rescan and fetch now.
  • “sol is not running here”. Start it with sol. After an upgrade run sol restart; sol version warns when the running Sol is another build than the binary.
  • Android stops in the background. Open the app again and exempt Sol from battery optimisation in Android’s settings.
  • Reporting a bug. Include sol version and the relevant part of sol logs. Logs do not contain keys or tokens. Issues go to github.com/apv022/sol/issues.

Design documents

Kept next to the code on GitHub, so they stay in step with it.

  • VISION

    Why Sol exists and what it will and will not be.

  • ARCHITECTURE

    The pieces and how they fit together.

  • IDENTITY

    People, devices, certificates, agents and the 24-word backup.

  • PROTOCOL

    The wire protocol between devices, byte by byte.

  • API

    The contract between the daemon and apps.

  • SECURITY_REVIEW

    What is protected, and what is not.

Also: the README, the changelog, and Sol for Android.