Skip to content

Commit 3e495cb

Browse files
committed
Improve commands
1 parent 481ef72 commit 3e495cb

35 files changed

Lines changed: 1470 additions & 571 deletions

‎assets/commands/agent-vault.md‎

Lines changed: 91 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -4,79 +4,138 @@ HTTP credential proxy and vault for AI agents
44

55
# TLDR
66

7-
**Start the vault server** and credential proxy (HTTP API + TLS proxy)
7+
**Start the vault server** in the background (prompts for the master password)
88

99
```agent-vault server -d```
1010

11-
**Run an AI agent command** with transparent credential brokering
11+
**Start the server** non-interactively, reading the master password from stdin
1212

13-
```agent-vault vault run -- [claude]```
13+
```echo "[password]" | agent-vault server --password-stdin -d```
1414

15-
**Run any subprocess** through the credential proxy
15+
**Stop the background** server
1616

17-
```agent-vault vault run -- [curl https://api.example.com]```
17+
```agent-vault server stop```
1818

19-
**Stop the background** server daemon
19+
**Log in** to a server from the CLI
2020

21-
```agent-vault server stop```
21+
```agent-vault login --address [http://127.0.0.1:14321]```
22+
23+
**Store a credential** in the active vault
24+
25+
```agent-vault vault credential set [ANTHROPIC_API_KEY]=[sk-ant-...]```
26+
27+
**Run an AI agent** with transparent credential brokering
28+
29+
```agent-vault run -- [claude]```
30+
31+
**Run an agent** in an isolated container instead of on the host
2232

23-
**Check the version**
33+
```agent-vault run --isolation container -- [claude]```
2434

25-
```agent-vault --version```
35+
**Print version** and build information
36+
37+
```agent-vault version```
2638

2739
# SYNOPSIS
2840

2941
**agent-vault** _command_ [_subcommand_] [_options_] [**--** _agent_command_]
3042

3143
# PARAMETERS
3244

33-
**server**
34-
> 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.
3562
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.
3868
3969
**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**.
4177
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.
4480
45-
**--config** _FILE_
46-
> Use an alternative configuration file.
81+
**run --ttl** _SECONDS_
82+
> Session lifetime (300 to 604800; server default is 24h).
4783
48-
**--port** _PORT_
49-
> Override the HTTP API port (default **14321**).
84+
**run --vault** _NAME_
85+
> Target vault, overriding the active context.
5086
51-
**--proxy-port** _PORT_
52-
> Override the HTTPS proxy port (default **14322**).
87+
**vault create** _NAME_
88+
> Create a new vault.
5389
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**).
5692
57-
**--help**
58-
> Show help for Agent Vault or for a specific subcommand.
93+
**vault credential** **list**|**get**|**set**|**delete**
94+
> Manage credentials stored in a vault.
95+
96+
**migrate-db --to** _URL_
97+
> Migrate existing data to a PostgreSQL database.
98+
99+
**version**
100+
> Print the version and build information (**--version** also works).
59101
60102
# DESCRIPTION
61103

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.
63105

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.
65107

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**.
67109

68110
# CONFIGURATION
69111

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.
114+
115+
**AGENT_VAULT_ADDR**, **AGENT_VAULT_TOKEN**, **AGENT_VAULT_VAULT**
116+
> 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.
71122

72123
# CAVEATS
73124

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.
75126

76127
# HISTORY
77128

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.
79130

80131
# SEE ALSO
81132

82133
[vault](/man/vault)(1), [mitmproxy](/man/mitmproxy)(1), [curl](/man/curl)(1)
134+
135+
# RESOURCES
136+
137+
```[Source code](https://github.com/Infisical/agent-vault)```
138+
139+
```[Documentation](https://docs.agent-vault.dev)```
140+
141+
<!-- verified: 2026-11-23 -->

‎assets/commands/backlit-kbd.md‎

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Control keyboard backlight brightness on Linux
2222

2323
```backlit-kbd dec [step]```
2424

25-
**Turn backlight on** at a specific percentage
25+
**Turn backlight on** at a specific percentage (default 100)
2626

2727
```backlit-kbd on --percent [40]```
2828

@@ -34,13 +34,21 @@ Control keyboard backlight brightness on Linux
3434

3535
```backlit-kbd blink --count [4] --on-ms [100] --off-ms [100]```
3636

37+
**Blink as a named notification** and wait for it to finish
38+
39+
```backlit-kbd notify --name [chat] --count [5] --on-ms [80] --off-ms [120]```
40+
41+
**Target a specific device** instead of auto-discovery
42+
43+
```backlit-kbd --device-path [/sys/class/leds/asus::kbd_backlight] percent [50]```
44+
3745
**Test without hardware** using the mock backend
3846

3947
```backlit-kbd --mock percent [50]```
4048

4149
# SYNOPSIS
4250

43-
**backlit-kbd** [_options_] _command_ [_args_]
51+
**backlit-kbd** [**--mock**] [**--device-path** _PATH_] _command_ [_args_]
4452

4553
# PARAMETERS
4654

@@ -60,7 +68,7 @@ Control keyboard backlight brightness on Linux
6068
> Decrease brightness by _step_ (default: 1).
6169
6270
**on** [**--percent** _N_]
63-
> Turn the backlight on, optionally at a given percentage.
71+
> Turn the backlight on at the given percentage (default **100**).
6472
6573
**off**
6674
> Turn the backlight off.
@@ -69,7 +77,7 @@ Control keyboard backlight brightness on Linux
6977
> Run a synchronous blink pattern on the keyboard.
7078
7179
**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.
7381
7482
**--mock**
7583
> Use an in-memory backend for safe testing without writing to hardware.
@@ -78,38 +86,44 @@ Control keyboard backlight brightness on Linux
7886
> Target a specific sysfs device path instead of auto-discovery.
7987
8088
**--count** _N_
81-
> Number of blink cycles (used with _blink_ / _notify_).
89+
> Number of blink cycles (default **3**; used with _blink_ / _notify_).
8290
8391
**--on-ms** _N_
84-
> Duration in milliseconds for the on state during blink.
92+
> Duration in milliseconds for the on state (default **150**).
8593
8694
**--off-ms** _N_
87-
> Duration in milliseconds for the off state during blink.
95+
> Duration in milliseconds for the off state (default **150**).
8896
8997
**--level-percent** _N_
90-
> Brightness level during blink cycles.
98+
> Brightness percentage during blink cycles (default **100**).
9199
92100
**--name** _NAME_
93-
> Notification identifier (used with _notify_).
101+
> Notification identifier (default **default**; used with _notify_).
94102
95103
# DESCRIPTION
96104

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.
98106

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.
100108

101109
# CONFIGURATION
102110

103111
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.
104112

105113
# CAVEATS
106114

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.
108116

109117
# HISTORY
110118

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.
112120

113121
# SEE ALSO
114122

115123
[brightnessctl](/man/brightnessctl)(1), [light](/man/light)(1), [xbacklight](/man/xbacklight)(1)
124+
125+
# RESOURCES
126+
127+
```[Source code](https://github.com/itsmeadarsh2008/backlit-kbd)```
128+
129+
<!-- verified: 2026-11-23 -->

0 commit comments

Comments
 (0)