☰ Menu
Home›Command-line Tools›sysaidmin
CLI Open source 10 installs/mo

sysaidmin for Mac

sysaidmin

Sysaidmin is an LLM-powered sysadmin for your machine. You can ask it to solve a problem, and it will run commands on your system (with your permission) to debug what's going on.

sysaidmin — overview

Sysaidmin is an LLM-powered sysadmin for your machine. You can ask it to solve a problem, and it will run commands on your system (with your permission) to debug what's going on.

Installation

Using uv (recommended):

Or, to run directly:

Using pip (less recommended, but still good):

Specify your OpenAI API key:

Then run Sysaidmin with your issue:

Using other models

Any model that supports the OpenAI Chat Completions API can be used. For example, to use Google Gemini:

Environment variables

You can use the following environment variables in place of parameters:

SYSAIDMIN_BASE_URL: The base URL for the service. SYSAIDMIN_API_KEY: The API key. SYSAIDMIN_MODEL: The model to use.

Sample run:

$ sysaidmin "Whenever I try to SSH to localhost on port 22, it doesn't work. Can you fix it?"


Running command: ssh localhost


Press any key to continue, Ctrl-C to terminate...

ssh: connect to host localhost port 22: Connection refused


Running command: systemctl status sshd


Press any key to continue, Ctrl-C to terminate...

● ssh.service - OpenBSD Secure Shell server Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled) Active: active (running) since Sun 2023-11-26 18:40:45 EET; 25s ago Docs: man:sshd(8) man:sshd_config(5) Process: 92469 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=0/SUCCESS) Main PID: 92471 (sshd) Tasks: 1 (limit: 18824) Memory: 1.7M CPU: 9ms CGroup: /system.slice/ssh.service └─92471 "sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups"

Νοε 26 18:40:45 zeus systemd[1]: Starting OpenBSD Secure Shell server... Νοε 26 18:40:45 zeus sshd[92471]: Server listening on 0.0.0.0 port 8122. Νοε 26 18:40:45 zeus sshd[92471]: Server listening on :: port 8122. Νοε 26 18:40:45 zeus systemd[1]: Started OpenBSD Secure Shell server.


It appears that your SSH server is running, but it is not listening on the default SSH port 22. Instead, it is listening on port 8122 for both IPv4 and IPv6 connections, as indicated by the line "Server listening on 0.0.0.0 port 8122" and "Server listening on :: port 8122."

To connect via SSH to localhost, you need to specify port 8122. You can do that by using the following command:

Try running this command, and it should allow you to connect to the SSH server running on your local machine.


Your response: No, please change the port


Running command: sudo sed -i 's/#Port 22/Port 22/' /etc/ssh/sshd_config && sudo systemctl restart ssh


Press any key to continue, Ctrl-C to terminate... ^C

Details

GPT驱动的系统管理员

How to install sysaidmin

  1. Open Terminal (press ⌘ + Space and type “Terminal”).
  2. If Homebrew is not installed yet, run the command below first.
  3. Run this command:

Latest 10 releases

This project has no GitHub releases yet.

Prebuilt bottle platforms

Official Homebrew bottles cover:

  • Apple silicon · latest macOS
  • Apple silicon · macOS 26 Tahoe
  • Apple silicon · macOS 15 Sequoia
  • Linux · ARM64
  • Linux · x86_64

⚠️ No prebuilt bottle for Intel Macs; Intel users need brew install --build-from-source to build from source.

Compared with similar apps

Only public metadata is compared, with no subjective recommendation; see the compare pages for field-by-field comparisons.

Compared with similar apps
AppVersionLicenseArchitecture30-day installs
sysaidmin0.2.5AGPL-3.0-or-laterCLI10
fypp3.3BSD-2-ClauseCLI25
openssl@4openssl-4.1.0Apache-2.0CLI494,798
xzv5.8.40BSD AND GPL-2.0-or-laterCLI346,605

Similar apps: Command-line Tools

Leave a comment

评论表单加载中…