bashio 2.0.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +217 -21
- package/README.md +88 -184
- package/dist/{App-SRRDMIMW.js → App-MVOM7NMT.js} +304 -430
- package/dist/App-MVOM7NMT.js.map +1 -0
- package/dist/{chunk-PYTBTPZN.js → chunk-6OLRZLFB.js} +6 -37
- package/dist/chunk-6OLRZLFB.js.map +1 -0
- package/dist/index.js +33 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/App-SRRDMIMW.js.map +0 -1
- package/dist/chunk-PYTBTPZN.js.map +0 -1
package/LICENSE
CHANGED
|
@@ -1,21 +1,217 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to the Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no theory of
|
|
154
|
+
liability, whether in contract, strict liability, or tort
|
|
155
|
+
(including negligence or otherwise) arising in any way out of
|
|
156
|
+
the use or inability to use the Work (even if such Holder or other
|
|
157
|
+
party has been advised of the possibility of such damages), shall
|
|
158
|
+
any Contributor be liable to You for damages, including any direct,
|
|
159
|
+
indirect, special, incidental, or consequential damages of any
|
|
160
|
+
character arising as a result of this License or out of the use or
|
|
161
|
+
inability to use the Work (including but not limited to damages for
|
|
162
|
+
loss of goodwill, work stoppage, computer failure or malfunction, or
|
|
163
|
+
any and all other commercial damages or losses), even if such
|
|
164
|
+
Contributor has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright 2025 Vranda Garg
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
203
|
+
|
|
204
|
+
================================================================================
|
|
205
|
+
|
|
206
|
+
ADDITIONAL TERMS
|
|
207
|
+
|
|
208
|
+
If you use, modify, or distribute this project or any part of it, you MUST:
|
|
209
|
+
|
|
210
|
+
1. Attribution: Give clear and visible credit to Vranda Garg as the
|
|
211
|
+
original author.
|
|
212
|
+
|
|
213
|
+
2. Link Back: Include a link to the original repository:
|
|
214
|
+
https://github.com/VrandaaGarg/bashio
|
|
215
|
+
|
|
216
|
+
These additional terms are provided under Section 4(b) of the Apache License 2.0,
|
|
217
|
+
which permits the addition of attribution notices.
|
package/README.md
CHANGED
|
@@ -1,67 +1,53 @@
|
|
|
1
|
-
|
|
1
|
+
<!-- SEO: Bashio - AI CLI Tool | Natural Language to Shell Commands -->
|
|
2
|
+
<!-- Transform plain English into shell commands. Supports Claude, OpenAI, GitHub Copilot, Ollama. -->
|
|
2
3
|
|
|
3
|
-
>
|
|
4
|
+
<p align="center">
|
|
5
|
+
<a href="https://github.com/VrandaaGarg/bashio">
|
|
6
|
+
<img src="https://res.cloudinary.com/dyetf2h9n/image/upload/v1769023957/Natural_language_to_shell_commands._Stop_Googling_start_doing._1_u8e0qd.png" alt="Bashio" width="100%" />
|
|
7
|
+
</a>
|
|
8
|
+
</p>
|
|
4
9
|
|
|
5
|
-
|
|
6
|
-
npm
|
|
7
|
-
|
|
10
|
+
<p align="center">
|
|
11
|
+
<a href="https://www.npmjs.com/package/bashio"><img src="https://img.shields.io/npm/v/bashio.svg" alt="npm" /></a>
|
|
12
|
+
<a href="https://github.com/VrandaaGarg/bashio/blob/main/LICENSE"><img src="https://img.shields.io/badge/License-Apache%202.0-blue.svg" alt="License" /></a>
|
|
13
|
+
<a href="https://github.com/VrandaaGarg/bashio"><img src="https://img.shields.io/github/stars/VrandaaGarg/bashio?style=social" alt="Stars" /></a>
|
|
14
|
+
</p>
|
|
8
15
|
|
|
9
16
|
---
|
|
10
17
|
|
|
11
|
-
##
|
|
12
|
-
|
|
13
|
-
Bashio is an AI-powered CLI tool that converts plain English into shell commands. Instead of searching for the right syntax, just describe what you want to do.
|
|
18
|
+
## Quick Start
|
|
14
19
|
|
|
15
20
|
```bash
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
> find . -size +100M -type f -delete
|
|
20
|
-
|
|
21
|
-
? Execute? (y/n/e/c/edit)
|
|
21
|
+
npm i -g bashio # Install globally
|
|
22
|
+
b --auth # Setup your AI provider
|
|
23
|
+
b show disk usage # Start using!
|
|
22
24
|
```
|
|
23
25
|
|
|
24
|
-
|
|
26
|
+
Requires Node.js 20.12.0+
|
|
25
27
|
|
|
26
28
|
---
|
|
27
29
|
|
|
28
|
-
##
|
|
30
|
+
## What is Bashio?
|
|
29
31
|
|
|
30
|
-
|
|
32
|
+
Bashio converts plain English into shell commands. Describe what you want, review the command, then execute.
|
|
31
33
|
|
|
32
34
|
```bash
|
|
33
|
-
|
|
35
|
+
$ b find all files larger than 100mb and delete them
|
|
34
36
|
```
|
|
35
|
-
|
|
36
|
-
Requires Node.js 20.12.0 or higher.
|
|
37
|
-
|
|
38
|
-
### 2. Setup your AI provider
|
|
39
|
-
|
|
40
|
-
```bash
|
|
41
|
-
b --auth
|
|
42
37
|
```
|
|
38
|
+
> find . -size +100M -type f -delete
|
|
43
39
|
|
|
44
|
-
|
|
45
|
-
- **Claude** (Anthropic) - API Key or Pro/Max subscription
|
|
46
|
-
- **OpenAI** (ChatGPT) - API Key or Plus/Pro subscription
|
|
47
|
-
- **GitHub Copilot** - Free with Copilot subscription
|
|
48
|
-
- **Ollama** - Free, runs locally
|
|
49
|
-
- **OpenRouter** - Pay-per-use, multiple models
|
|
50
|
-
|
|
51
|
-
### 3. Start using it
|
|
52
|
-
|
|
53
|
-
```bash
|
|
54
|
-
b show disk usage sorted by size
|
|
40
|
+
? Execute? (y/n/e/c/edit)
|
|
55
41
|
```
|
|
56
42
|
|
|
57
|
-
|
|
43
|
+
**Options:** `y` execute · `n` cancel · `e` explain · `c` copy · `edit` modify
|
|
58
44
|
|
|
59
45
|
---
|
|
60
46
|
|
|
61
47
|
## Examples
|
|
62
48
|
|
|
63
49
|
```bash
|
|
64
|
-
#
|
|
50
|
+
# Files
|
|
65
51
|
b find all javascript files modified today
|
|
66
52
|
b delete all node_modules folders recursively
|
|
67
53
|
b compress all png images in this folder
|
|
@@ -74,155 +60,105 @@ b show commits from last week by john
|
|
|
74
60
|
b kill whatever is running on port 3000
|
|
75
61
|
b what is my public ip address
|
|
76
62
|
b list all running docker containers
|
|
77
|
-
|
|
78
|
-
# Network
|
|
79
|
-
b download this url and save as data.json
|
|
80
63
|
```
|
|
81
64
|
|
|
82
65
|
---
|
|
83
66
|
|
|
84
|
-
##
|
|
67
|
+
## Chat Mode
|
|
85
68
|
|
|
86
|
-
|
|
69
|
+
Full-screen AI chat with streaming responses:
|
|
87
70
|
|
|
88
71
|
```bash
|
|
89
72
|
b --chat
|
|
90
73
|
```
|
|
91
74
|
|
|
92
|
-
**
|
|
93
|
-
- Full-screen TUI with streaming responses
|
|
94
|
-
- Session management (save, load, switch sessions)
|
|
95
|
-
- Slash commands for quick actions
|
|
96
|
-
- Theme customization
|
|
97
|
-
- Model switching mid-conversation
|
|
75
|
+
**Features:** Session history · Slash commands · Themes · Model switching
|
|
98
76
|
|
|
99
|
-
**Keyboard Shortcuts (in chat):**
|
|
100
77
|
| Shortcut | Action |
|
|
101
78
|
|----------|--------|
|
|
102
|
-
| `Ctrl+
|
|
103
|
-
| `Ctrl+O` | Open
|
|
79
|
+
| `Ctrl+P` | Switch model |
|
|
80
|
+
| `Ctrl+O` | Open sessions |
|
|
104
81
|
| `Ctrl+T` | Change theme |
|
|
105
|
-
| `Ctrl+C` | Exit
|
|
106
|
-
|
|
107
|
-
**Slash Commands:**
|
|
108
|
-
| Command | Action |
|
|
109
|
-
|---------|--------|
|
|
110
|
-
| `/models` | Switch AI model |
|
|
111
|
-
| `/sessions` | Browse chat sessions |
|
|
112
|
-
| `/theme` | Change color theme |
|
|
113
|
-
| `/new` | Start new chat session |
|
|
114
|
-
| `/clear` | Clear current chat |
|
|
115
|
-
| `/exit` | Exit chat |
|
|
116
|
-
|
|
117
|
-
---
|
|
118
|
-
|
|
119
|
-
## Confirmation Options
|
|
120
|
-
|
|
121
|
-
When a command is generated, you can:
|
|
122
|
-
|
|
123
|
-
| Key | Action |
|
|
124
|
-
|-----|--------|
|
|
125
|
-
| `y` or Enter | Execute the command |
|
|
126
|
-
| `n` | Cancel |
|
|
127
|
-
| `e` | Explain what the command does |
|
|
128
|
-
| `c` | Copy to clipboard |
|
|
129
|
-
| `edit` | Edit the command before running |
|
|
82
|
+
| `Ctrl+C` | Exit |
|
|
130
83
|
|
|
131
84
|
---
|
|
132
85
|
|
|
133
86
|
## Shortcuts
|
|
134
87
|
|
|
135
|
-
Save
|
|
136
|
-
|
|
137
|
-
### Create a shortcut
|
|
88
|
+
Save frequently used commands with placeholders:
|
|
138
89
|
|
|
139
90
|
```bash
|
|
140
|
-
# Interactive
|
|
141
|
-
b --add-shortcut
|
|
142
|
-
|
|
143
|
-
# One-liner
|
|
144
91
|
b --add-shortcut killport "lsof -ti:{{port}} | xargs kill -9" port
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
### Use it
|
|
148
|
-
|
|
149
|
-
```bash
|
|
150
|
-
b killport 3000
|
|
151
|
-
```
|
|
152
|
-
```
|
|
153
|
-
[shortcut: killport]
|
|
154
|
-
> lsof -ti:3000 | xargs kill -9
|
|
155
|
-
|
|
156
|
-
? Execute? (y/n/e/c/edit)
|
|
157
|
-
```
|
|
158
|
-
|
|
159
|
-
### Manage shortcuts
|
|
160
|
-
|
|
161
|
-
```bash
|
|
162
|
-
b --shortcuts # List all
|
|
163
|
-
b --edit-shortcuts # Edit in your editor
|
|
164
|
-
b --remove-shortcut name # Delete one
|
|
92
|
+
b killport 3000 # Uses the shortcut
|
|
165
93
|
```
|
|
166
94
|
|
|
167
95
|
---
|
|
168
96
|
|
|
169
97
|
## AI Providers
|
|
170
98
|
|
|
171
|
-
Configure with `b --auth
|
|
99
|
+
Configure with `b --auth`:
|
|
172
100
|
|
|
173
|
-
| Provider |
|
|
174
|
-
|
|
175
|
-
| **Claude** (Anthropic) | API Key
|
|
176
|
-
| **
|
|
177
|
-
| **
|
|
178
|
-
| **
|
|
179
|
-
| **
|
|
180
|
-
| **Ollama** | None (local) | Free |
|
|
181
|
-
| **OpenRouter** | API Key | Pay per use |
|
|
101
|
+
| Provider | Type |
|
|
102
|
+
|----------|------|
|
|
103
|
+
| **Claude** (Anthropic) | API Key or Pro/Max subscription |
|
|
104
|
+
| **OpenAI** (ChatGPT) | API Key or Plus/Pro subscription |
|
|
105
|
+
| **GitHub Copilot** | Free with Copilot subscription |
|
|
106
|
+
| **Ollama** | Free, runs locally |
|
|
107
|
+
| **OpenRouter** | Pay-per-use, multiple models |
|
|
182
108
|
|
|
183
|
-
Switch
|
|
184
|
-
|
|
185
|
-
```bash
|
|
186
|
-
b --model
|
|
187
|
-
```
|
|
109
|
+
Switch anytime: `b --model`
|
|
188
110
|
|
|
189
111
|
---
|
|
190
112
|
|
|
191
|
-
##
|
|
192
|
-
|
|
193
|
-
Customize the color theme:
|
|
194
|
-
|
|
195
|
-
```bash
|
|
196
|
-
b --theme
|
|
197
|
-
```
|
|
113
|
+
## All Commands
|
|
198
114
|
|
|
199
|
-
|
|
115
|
+
### Core
|
|
116
|
+
| Command | Description |
|
|
117
|
+
|---------|-------------|
|
|
118
|
+
| `b <query>` | Convert natural language to shell command |
|
|
119
|
+
| `b --chat` | Start interactive AI chat session |
|
|
200
120
|
|
|
201
|
-
|
|
121
|
+
### Configuration
|
|
122
|
+
| Command | Description |
|
|
123
|
+
|---------|-------------|
|
|
124
|
+
| `b --auth` | Configure AI provider |
|
|
125
|
+
| `b --config` | View current configuration |
|
|
126
|
+
| `b --model` | Change AI provider/model |
|
|
127
|
+
| `b --theme` | Change color theme |
|
|
202
128
|
|
|
203
|
-
|
|
129
|
+
### Shortcuts
|
|
130
|
+
| Command | Description |
|
|
131
|
+
|---------|-------------|
|
|
132
|
+
| `b --shortcuts` | List all shortcuts |
|
|
133
|
+
| `b --add-shortcut` | Add a new shortcut |
|
|
134
|
+
| `b --remove-shortcut <name>` | Remove a shortcut |
|
|
135
|
+
| `b --edit-shortcuts` | Edit shortcuts in editor |
|
|
204
136
|
|
|
205
|
-
|
|
137
|
+
### History & Stats
|
|
138
|
+
| Command | Description |
|
|
139
|
+
|---------|-------------|
|
|
140
|
+
| `b --history` | View command history |
|
|
141
|
+
| `b --history --search <term>` | Search history |
|
|
142
|
+
| `b --stats` | View usage statistics |
|
|
143
|
+
| `b --suggest-shortcuts` | Suggest shortcuts from history |
|
|
144
|
+
| `b --clear-history` | Clear command history |
|
|
206
145
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
b --
|
|
211
|
-
b --
|
|
212
|
-
b --clear-history # Clear history
|
|
213
|
-
```
|
|
146
|
+
### Help
|
|
147
|
+
| Command | Description |
|
|
148
|
+
|---------|-------------|
|
|
149
|
+
| `b --help` | Show help message |
|
|
150
|
+
| `b --version` | Show version (with update check) |
|
|
214
151
|
|
|
215
152
|
---
|
|
216
153
|
|
|
217
154
|
## Safety
|
|
218
155
|
|
|
219
|
-
Bashio
|
|
156
|
+
Bashio warns you about dangerous commands:
|
|
220
157
|
|
|
221
158
|
```
|
|
222
159
|
> rm -rf ~/*
|
|
223
160
|
|
|
224
161
|
WARNING: This command may cause irreversible changes.
|
|
225
|
-
Reasons:
|
|
226
162
|
- Uses recursive force delete (rm -rf)
|
|
227
163
|
- Targets home directory
|
|
228
164
|
|
|
@@ -233,58 +169,26 @@ Every command requires confirmation before execution.
|
|
|
233
169
|
|
|
234
170
|
---
|
|
235
171
|
|
|
236
|
-
##
|
|
172
|
+
## Privacy
|
|
237
173
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
| `b <shortcut> [args]` | Run a saved shortcut |
|
|
242
|
-
| `b --chat` | Start interactive chat mode |
|
|
243
|
-
| `b --auth` | Setup AI provider |
|
|
244
|
-
| `b --model` | Change AI model |
|
|
245
|
-
| `b --config` | View current config |
|
|
246
|
-
| `b --theme` | Change color theme |
|
|
247
|
-
| `b --shortcuts` | List shortcuts |
|
|
248
|
-
| `b --add-shortcut` | Create shortcut |
|
|
249
|
-
| `b --remove-shortcut <name>` | Delete shortcut |
|
|
250
|
-
| `b --edit-shortcuts` | Edit shortcuts file |
|
|
251
|
-
| `b --history` | View command history |
|
|
252
|
-
| `b --stats` | Usage statistics |
|
|
253
|
-
| `b --suggest-shortcuts` | Get shortcut suggestions |
|
|
254
|
-
| `b --clear-history` | Clear history |
|
|
255
|
-
| `b --help` | Show help |
|
|
256
|
-
| `b --version` | Show version (with update check) |
|
|
174
|
+
- All data stored locally at `~/.bashio/`
|
|
175
|
+
- No telemetry or tracking
|
|
176
|
+
- Queries only sent to your chosen AI provider
|
|
257
177
|
|
|
258
178
|
---
|
|
259
179
|
|
|
260
|
-
##
|
|
261
|
-
|
|
262
|
-
All data is stored locally at `~/.bashio/`:
|
|
263
|
-
|
|
264
|
-
```
|
|
265
|
-
~/.bashio/
|
|
266
|
-
├── config.json # Settings and API keys
|
|
267
|
-
├── shortcuts.json # Your shortcuts
|
|
268
|
-
├── sessions/ # Chat sessions
|
|
269
|
-
└── history.db # Command history
|
|
270
|
-
```
|
|
271
|
-
|
|
272
|
-
View your config:
|
|
180
|
+
## License
|
|
273
181
|
|
|
274
|
-
|
|
275
|
-
b --config
|
|
276
|
-
```
|
|
182
|
+
Copyright 2025 [Vranda Garg](https://vrandagarg.in)
|
|
277
183
|
|
|
278
|
-
|
|
184
|
+
**If you use, modify, or distribute this project, you must:**
|
|
185
|
+
1. Give credit to **Vranda Garg** as the original author
|
|
186
|
+
2. Link to [github.com/VrandaaGarg/bashio](https://github.com/VrandaaGarg/bashio)
|
|
279
187
|
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
- All data stays on your machine
|
|
283
|
-
- No telemetry or tracking
|
|
284
|
-
- Queries only sent to your chosen AI provider
|
|
188
|
+
Licensed under Apache 2.0 · [View LICENSE](https://github.com/VrandaaGarg/bashio/blob/main/LICENSE)
|
|
285
189
|
|
|
286
190
|
---
|
|
287
191
|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
192
|
+
<p align="center">
|
|
193
|
+
<a href="https://github.com/VrandaaGarg/bashio">GitHub</a> · <a href="https://www.npmjs.com/package/bashio">npm</a> · <a href="https://vrandagarg.in">Author</a>
|
|
194
|
+
</p>
|