On your Mac5 steps5 min readUpdated
How your agents use git, the GitHub CLI and npm on your Mac
An agent on your Mac runs the tools you’re signed in to in Terminal, with your own sign-in, as its Permission allows. No Agently connection needed.
An agent that works on your Mac, on your own Claude, ChatGPT or OpenCode plan, can run the command-line tools you’re signed in to there: git, the GitHub CLI, npm and the like. It uses your own sign-in, the way you would in Terminal, and its Permission decides when it asks you first.
This guide has an agent called Builder fix a typo on your website, start the site so you can look, then push the fix and open a pull request, with GitHub not connected in Agently at all. You’ll answer its command cards and keep the site running after it replies.
Before you start
- An agent that works on your Mac. One set to run Local, on your own Claude, ChatGPT or OpenCode plan. Where agents run.
- Your tools, signed in on this Mac. git, and the GitHub CLI signed in to your GitHub account, as you use them in Terminal.
- The project on this Mac. Here, your website’s repository.
1Check its Permission
Open the agent’s Agent settings and look at Permission. It decides how the agent uses these tools:
Permission With git, the GitHub CLI and npm Asks first (the default) Asks before each command you haven’t already allowed. A plain read may run without asking. Full access Runs them without asking. In a chat your teammates read, it still asks first. Read only Runs none of them, so it never changes or deletes anything with them. Leave Builder on Asks first for this job. More on Permission.
2Ask for the job
In its chat, ask the way you’d ask a colleague: “Fix the typo on the pricing page, start the site so I can look, then push it and open a pull request.”
It works in the repository with your git and your GitHub CLI. GitHub doesn’t need to be connected in Agently for this: connecting an app, and allowing it in an agent’s Apps, is only for its work through Agently’s own connection, such as reading the issues your workspace’s GitHub connection reaches.
3Answer its cards
On Asks first, each command waits as a card in the chat before it runs: Builder wants to run something on your Mac, with exactly what will run. The fix to the page asks the same way, as a file change.
Answer What happens Yes Runs this one. Yes, and don’t ask again for commands in this chat Runs it, and the rest of the chat’s commands run without asking. For a file change, it reads file changes instead. No Doesn’t run it. Type in Or tell Builder what to do instead to say what should happen. Don’t ask again lasts for this chat, on this Mac, until you turn it off. In a room it covers every agent there, until you turn it off in the room’s settings. Steps in the agent’s browser still ask, and once it reads a web page in that chat, it asks again.
TipWhat you type after No may not reach the agent. If the work stops, send what you want as a new message.
4Keep the site running after it replies
On your Claude plan, with Agently for Mac 0.1.59 or later, an agent can leave a long command running after its reply: the site you asked it to start, a build or a render. On Asks first it asks you first. The chat then shows Still running and what it is, with Leave running and Stop.
Agently stops it after 60 minutes unless you choose Leave running, and the chat says when it ends. At most three run at once, and quitting Agently stops them all. Builder picks up from there when you ask it to carry on.
5Check it’s working
Open the pull request on GitHub. It’s yours: opened with your own GitHub CLI sign-in, the same as if you’d typed the commands in Terminal. When you’re done looking at the site, choose Stop in the chat.
What runs without asking, plan by plan
On Asks first, each plan lets a little through without a card:
| Plan | Runs without asking |
|---|---|
| Claude | A plain read. |
| ChatGPT | On Agently for Mac 0.1.54 or later, a plain read in the agent’s own folder. A command you allow may run outside its sandbox, with network on, and commands skip your shell profile. |
| OpenCode | Nothing: it asks for every command. |
Your sign-ins stay yours
Agents use a tool’s own sign-in when they run it, and are told never to print, copy or read its token or sign-in files. On Agently for Mac 0.1.54 or later, fixed limits in every Permission try to keep them out of those files. It’s a best-effort check, so keep secrets out of what you hand an agent.
Agently’s own tools for an app still follow your rules for that app, whatever the Permission. What agents can do on your Mac.
If something goes wrong
- It says it can’t use git because GitHub isn’t allowed in its Apps.
- Tell it to use the git on your Mac. Allowing GitHub in its Apps is only for working in GitHub through Agently’s own connection.
- It still asks on Full access.
- In a chat your teammates read it always asks first. With ChatGPT, Agently for Mac older than 0.1.58 asks first too: update Agently.
- There’s no don’t ask again.
- It isn’t offered in a chat your teammates read, in a room shared with others or holding their words, or with ChatGPT on Agently for Mac older than 0.1.58. An older Agently for Mac offers Always allow and Allow everything in this chat instead.
- A command can’t find the right Node version.
- With ChatGPT, commands skip your shell profile, so a project’s Node version file may not apply. Ask the agent to set what it needs in the command itself.
- The site stopped after an hour.
- Agently stops a command left running after 60 minutes unless you chose Leave running. Ask the agent to start it again.
Questions
Do I need to connect GitHub in Agently?
No. An agent on your Mac uses your own git and GitHub CLI sign-in. Connect GitHub in Agently only if you want agents to work in it through Agently’s connection.
Which agents can do this?
Agents whose Runs on is Local, on your own Claude, ChatGPT or OpenCode plan.
Can my teammates make my agent run commands?
In a chat your teammates read, an agent asks first even on Full access, and don’t ask again isn’t offered.
Do these commands cost Agently credits?
No. An agent on your Mac runs on your own Claude, ChatGPT or OpenCode plan.
More guides
How-to4 min readHow to talk to Linus out loudPress ⌘⇧Space and talk from any app, or say “Hey, Linus”. Then pick his voice and what he calls you.
How-to3 min readHow to set up the notchChoose how big the notch is, what it shows when nothing is running, what shows on a Mac without one, and which cards drop down.
How-to3 min readKeyboard shortcuts, and ⌘K for everything elseJump to any agent, page or setting without the mouse, and change the two Mac-wide keys if they clash with another app.
