HORUSdocs
Docs menu
The app

Projects and GitHub

Create folders, clone repositories, and connect GitHub.

A project is a folder for your code. Every project lives in /workspace/projects inside Horus. When you tap an agent, the Choose project screen opens with three tabs: On device for folders already on the phone, GitHub for your repositories, and + New to start one.

The Choose project screen listing four folders in /workspace/projects
Choose project: folders on the phone, your GitHub repos, or a new one.

1. Create an empty folder

Open + New, leave Empty folder selected, type a name and tap Create. Use a short name made of letters, numbers, dots, dashes or underscores, like my-app. This is the way to start something new from scratch.

2. Clone from a Git URL

Open + New, switch to Clone URL, paste the address of any Git repository and tap Clone. It works with HTTPS addresses (https://github.com/org/repo) and SSH addresses (git@github.com:org/repo.git), and the new folder takes the repository's name.

3. Pick one of your GitHub repositories

Once you connect GitHub, the GitHub tab lists repositories you own, collaborate on, or can access through an organization. Tap one marked Clone ↓ and Horus clones it before opening it. Public repositories don't need a login at all; clone them by URL under + New.

Connect GitHub

Horus uses GitHub's official command-line tool, gh, to sign in. You never type your GitHub password into Horus.

  1. Tap Login to GitHub

    It's at the top of the home screen. You can also tap Connect GitHub on the GitHub tab. A terminal opens and gh asks a few questions.

  2. Answer the questions

    Use the arrow keys on the key bar to choose, and RETURN to confirm. If you're unsure, pick GitHub.com, HTTPS, and log in with a web browser.

  3. Note the one-time code

    gh shows a short code like ABCD-1234. Remember it. Horus opens GitHub's device login page in your browser.

  4. Enter the code on GitHub

    Type the code on the GitHub page and approve access, then switch back to Horus. Your account shows on the home screen and your repositories fill the GitHub tab. If the tab still says Not connected, tap Already signed in? Check again.

To sign out, tap your account on the home screen and choose LOG OUT OF GITHUB.

Saving your work to GitHub

Agents can commit and push for you, so you can just ask: "commit this and push it". To do it yourself, open Bare terminal and run:

Horus terminal
cd /workspace/projects/my-app
git add -A
git commit -m "Describe what you changed"
git push