You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3e495cb
Browse filesBrowse the repository at this point in the historyBrowse files
> Start the HTTP API (default port **14321**) and the TLS-encrypted transparent HTTPS proxy (default port **14322**).
45
+
**server**[_options_]
46
+
> Start the server: HTTP API and web UI on port **14321**, transparent HTTP/HTTPS (MITM) proxy on port **14322**.
47
+
48
+
**server -d**, **--detach**
49
+
> Run the server in the background after unlocking.
50
+
51
+
**server -p**, **--port**_PORT_
52
+
> Port for the API/UI (default **14321**; also respects the **PORT** environment variable).
53
+
54
+
**server --host**_HOST_
55
+
> Address to bind to (default **127.0.0.1**).
56
+
57
+
**server --mitm-port**_PORT_
58
+
> Port for the transparent proxy (default **14322**; **0** disables it).
59
+
60
+
**server --password-stdin**
61
+
> Read the master password from stdin for non-interactive use.
35
62
36
-
**server****-d**, **--daemon**
37
-
> Run the server in the background as a daemon.
63
+
**server --database-url**_URL_
64
+
> Use PostgreSQL instead of the default local SQLite database (also respects **DATABASE_URL**).
65
+
66
+
**server --log-level**_LEVEL_
67
+
> **info** (default) or **debug** for per-request proxy logs.
38
68
39
69
**server stop**
40
-
> Stop a running server daemon.
70
+
> Stop a running server.
71
+
72
+
**login**[**--address**_URL_][**--email**_EMAIL_]
73
+
> Authenticate the CLI against a server with email and password.
74
+
75
+
**run**[_options_]**--**_command_[_args_]
76
+
> Wrap an agent process with Agent Vault access: creates a scoped session, sets **HTTPS_PROXY** and CA trust in the child's environment, and brokers credentials on outbound requests. Also available as **vault run**.
41
77
42
-
**vault run****--**_command_
43
-
> Execute _command_ with credential brokering enabled. Automatically creates a scoped session, injects **HTTPS_PROXY** and CA-trust environment variables, and transparently proxies outgoing HTTPS requests.
78
+
**run --isolation****host**|**container**
79
+
> Run the agent directly on the host (default) or inside a Docker container with egress firewall rules.
44
80
45
-
**--config**_FILE_
46
-
> Use an alternative configuration file.
81
+
**run --ttl**_SECONDS_
82
+
> Session lifetime (300 to 604800; server default is 24h).
47
83
48
-
**--port**_PORT_
49
-
> Override the HTTP API port (default **14321**).
84
+
**run --vault**_NAME_
85
+
> Target vault, overriding the active context.
50
86
51
-
**--proxy-port**_PORT_
52
-
> Override the HTTPS proxy port (default **14322**).
87
+
**vault create**_NAME_
88
+
> Create a new vault.
53
89
54
-
**--version**
55
-
> Print the Agent Vault version and exit.
90
+
**vault init**
91
+
> Bind the current directory to a vault (writes **agent-vault.json**).
56
92
57
-
**--help**
58
-
> Show help for Agent Vault or for a specific subcommand.
> Print the version and build information (**--version** also works).
59
101
60
102
# DESCRIPTION
61
103
62
-
**agent-vault** is an HTTP credential proxy and vault designed to keep secrets away from AI agents while still letting them call authenticated APIs. Instead of handing raw API keys or tokens to the agent process, Agent Vault runs the agent as a child process with **HTTPS_PROXY** pointed at a local TLS-terminating proxy. The proxy injects the correct credentials into outbound HTTPS requests for allowed destinations, so the agent never sees the secret itself.
104
+
**agent-vault** is an HTTP credential proxy and vault designed to keep secrets away from AI agents while still letting them call authenticated APIs. Credentials (e.g. **ANTHROPIC_API_KEY**, a GitHub token) are stored in Agent Vault, and the agent is given dummy placeholder values such as **__anthropic_api_key__**. Outbound requests are routed through the proxy, which substitutes the real credentials or rewrites auth headers before forwarding to the target API, so the agent never holds the secret.
63
105
64
-
The server exposes an HTTP API on port **14321**(where credentials, policies, and sessions are managed via a web UI) and a transparent HTTPS proxy on port **14322**. The **agent-vault vault run -- <command>** wrapper spawns a short-lived scoped session, sets **HTTPS_PROXY**and the proxy's CA certificate in the child's environment, and tears the session down when the command exits.
106
+
A single binary acts as both server and CLI client. The server exposes a management web UI and API on port **14321** and a transparent proxy on port **14322** that handles **CONNECT** for HTTPS upstreams and forward-proxy requests for HTTP. Service rules control which hosts and endpoints each agent may reach, and authenticated traffic is logged. Requests not matching a service are forwarded as plain proxy traffic unless the vault is set to deny unmatched hosts.
65
107
66
-
This reduces the blast radius of a compromised or misbehaving agent: even if the agent is tricked into exfiltration, it cannot leak credentials it never held.
108
+
Agents connect using the **AGENT_VAULT_ADDR**, **AGENT_VAULT_TOKEN** and **AGENT_VAULT_VAULT** environment variables, or by being launched through **agent-vault run**.
67
109
68
110
# CONFIGURATION
69
111
70
-
The web UI at **http://localhost:14321** is used to register credentials, define which hosts an agent session may reach, and inspect session activity. The server persists state under a data directory (e.g. the Docker volume **agent-vault-data** at **/data**).
112
+
**AGENT_VAULT_MASTER_PASSWORD**
113
+
> Master password used to encrypt stored data; read once at startup and then unset from the process.
> Server address, agent token, and target vault for agents running against a remote Agent Vault.
117
+
118
+
**DATABASE_URL**
119
+
> PostgreSQL connection string for production or multi-instance deployments.
120
+
121
+
The web UI at **http://localhost:14321** is used to create the owner account, vaults, credentials, service rules and agents. With Docker, state is kept in the **/data** volume.
71
122
72
123
# CAVEATS
73
124
74
-
Requires the agent to honor the **HTTPS_PROXY**environment variable and to trust the proxy's CA certificate; processes that bypass the proxy (e.g. via direct TCP or pinned certificates) will not benefit from credential brokering. The proxy terminates TLS locally, so traffic between the agent and the proxy is re-encrypted by Agent Vault rather than end-to-end to the remote host.
125
+
The upstream repository now marks this standalone open-source project as **no longer recommended**for new setups; Infisical directs users to **Agent Vault in Infisical** instead. The agent must honor **HTTPS_PROXY** and trust the proxy's CA certificate; processes that bypass the proxy or pin certificates are not brokered. Upstream recommends running Agent Vault on a separate host from the agents and keeping the proxy port private to the agents' network.
75
126
76
127
# HISTORY
77
128
78
-
**agent-vault**is developed by **Infisical**as part of their focus on secrets management for AI workloads, addressing the risk of giving autonomous agents long-lived credentials.
129
+
**agent-vault**was released as open source by **Infisical**in **2026**, written in **Go**. Its functionality has since been integrated into the Infisical platform, which is now the recommended way to run it.
@@ -60,7 +68,7 @@ Control keyboard backlight brightness on Linux
60
68
> Decrease brightness by _step_ (default: 1).
61
69
62
70
**on**[**--percent**_N_]
63
-
> Turn the backlight on, optionally at a given percentage.
71
+
> Turn the backlight onat the given percentage (default **100**).
64
72
65
73
**off**
66
74
> Turn the backlight off.
@@ -69,7 +77,7 @@ Control keyboard backlight brightness on Linux
69
77
> Run a synchronous blink pattern on the keyboard.
70
78
71
79
**notify**[_options_]
72
-
> Run an asynchronous notification blink without blocking the shell.
80
+
> Run the blink pattern through the library's asynchronous notification blinker under a name, then wait for it to complete.
73
81
74
82
**--mock**
75
83
> Use an in-memory backend for safe testing without writing to hardware.
@@ -78,38 +86,44 @@ Control keyboard backlight brightness on Linux
78
86
> Target a specific sysfs device path instead of auto-discovery.
79
87
80
88
**--count**_N_
81
-
> Number of blink cycles (used with _blink_ / _notify_).
89
+
> Number of blink cycles (default **3**; used with _blink_ / _notify_).
82
90
83
91
**--on-ms**_N_
84
-
> Duration in milliseconds for the on state during blink.
92
+
> Duration in milliseconds for the on state (default **150**).
85
93
86
94
**--off-ms**_N_
87
-
> Duration in milliseconds for the off state during blink.
95
+
> Duration in milliseconds for the off state (default **150**).
88
96
89
97
**--level-percent**_N_
90
-
> Brightness level during blink cycles.
98
+
> Brightness percentage during blink cycles (default **100**).
91
99
92
100
**--name**_NAME_
93
-
> Notification identifier (used with _notify_).
101
+
> Notification identifier (default **default**; used with _notify_).
94
102
95
103
# DESCRIPTION
96
104
97
-
**backlit-kbd** is a Python command-line utility for controlling the keyboard backlight on Linux. It auto-discovers compatible LED devices exposed by the kernel under **/sys/class/leds/**, typically vendor-specific paths such as**tpacpi::kbd_backlight**(Lenovo ThinkPad), **asus::kbd_backlight**(ASUS), or **dell::kbd_backlight**(Dell).
105
+
**backlit-kbd** is a Python command-line utility for controlling the keyboard backlight on Linux. It auto-discovers compatible LED devices exposed by the kernel under **/sys/class/leds/** whose names match **kbd_backlight** or**keyboard_backlight** (for example **tpacpi::kbd_backlight**on ThinkPads or **asus::kbd_backlight**on ASUS laptops), using the first device that provides both **brightness**and **max_brightness** files. Each command prints the resulting state as raw level, maximum, and percentage.
98
106
99
-
The tool exposes high-level commands (_set_, _percent_, _inc_, _dec_, _on_, _off_) for everyday brightness control and a pair of _blink_ / _notify_ commands for producing visual notifications via the keyboard LEDs. A **--mock** flag swaps the backend for an in-memory simulator, making it safe to experiment or integrate into scripts on machines without a real backlight device.
107
+
The tool exposes high-level commands (_set_, _percent_, _inc_, _dec_, _on_, _off_) for everyday brightness control and a pair of _blink_ / _notify_ commands for producing visual notifications via the keyboard LEDs. The same functionality is available as a Python library (**backlit_kbd**). A **--mock** flag swaps the backend for an in-memory simulator, making it safe to experiment or integrate into scripts on machines without a real backlight device.
100
108
101
109
# CONFIGURATION
102
110
103
111
Installed via **pip install backlit-kbd**. The tool reads brightness paths from **/sys/class/leds/*kbd_backlight*** and usually requires root permissions (or a udev rule granting write access) to change brightness levels. Use **--device-path** to override device auto-discovery.
104
112
105
113
# CAVEATS
106
114
107
-
Writing to sysfs brightness files typically requires **root** privileges. Not all laptops expose a keyboard backlight LED; on unsupported hardware the tool will fail to discover a device unless **--mock** is used. Raw level ranges differ per device, so percentage mode is more portable across machines.
115
+
Writing to sysfs brightness files typically requires **root** privileges or a udev rule. Discovery may also match a **capslock** LED on some systems if no keyboard backlight is found, so use **--device-path** when results look wrong. Not all laptops expose a keyboard backlight LED; on unsupported hardware the tool will fail to discover a device unless **--mock** is used. Raw level ranges differ per device, so percentage mode is more portable across machines.
108
116
109
117
# HISTORY
110
118
111
-
**backlit-kbd**is an open-source Python package hosted on GitHub and published to PyPI, aimed at providing a beginner-friendly CLI for keyboard backlight control on Linux laptops.
119
+
**backlit-kbd**was created by **Adarsh Gourab Mahalik**and first released (version 0.1.0) on PyPI in **2026** under the MIT license.
0 commit comments