@oxagen/cli 0.3.3 → 0.4.0

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.
Files changed (222) hide show
  1. package/README.md +234 -318
  2. package/dist/commands/agent.mcp.list.d.ts.map +1 -1
  3. package/dist/commands/agent.mcp.list.js +4 -2
  4. package/dist/commands/agent.mcp.list.js.map +1 -1
  5. package/dist/commands/agent.mcp.register.d.ts.map +1 -1
  6. package/dist/commands/agent.mcp.register.js +3 -2
  7. package/dist/commands/agent.mcp.register.js.map +1 -1
  8. package/dist/commands/agent.plan.approve.d.ts.map +1 -1
  9. package/dist/commands/agent.plan.approve.js +2 -1
  10. package/dist/commands/agent.plan.approve.js.map +1 -1
  11. package/dist/commands/agent.plan.create.d.ts.map +1 -1
  12. package/dist/commands/agent.plan.create.js +2 -1
  13. package/dist/commands/agent.plan.create.js.map +1 -1
  14. package/dist/commands/agent.skill.list.d.ts.map +1 -1
  15. package/dist/commands/agent.skill.list.js +4 -2
  16. package/dist/commands/agent.skill.list.js.map +1 -1
  17. package/dist/commands/agent.task.background.cancel.d.ts.map +1 -1
  18. package/dist/commands/agent.task.background.cancel.js +2 -1
  19. package/dist/commands/agent.task.background.cancel.js.map +1 -1
  20. package/dist/commands/agent.task.background.read.d.ts.map +1 -1
  21. package/dist/commands/agent.task.background.read.js.map +1 -1
  22. package/dist/commands/agent.task.background.start.d.ts.map +1 -1
  23. package/dist/commands/agent.task.background.start.js +2 -1
  24. package/dist/commands/agent.task.background.start.js.map +1 -1
  25. package/dist/commands/agent.tool.list.d.ts.map +1 -1
  26. package/dist/commands/agent.tool.list.js +4 -2
  27. package/dist/commands/agent.tool.list.js.map +1 -1
  28. package/dist/commands/api-key.create.d.ts.map +1 -1
  29. package/dist/commands/api-key.create.js +2 -1
  30. package/dist/commands/api-key.create.js.map +1 -1
  31. package/dist/commands/archive.create.d.ts.map +1 -1
  32. package/dist/commands/archive.create.js +2 -1
  33. package/dist/commands/archive.create.js.map +1 -1
  34. package/dist/commands/asset.upload.d.ts.map +1 -1
  35. package/dist/commands/asset.upload.js +2 -1
  36. package/dist/commands/asset.upload.js.map +1 -1
  37. package/dist/commands/automation.list.d.ts.map +1 -1
  38. package/dist/commands/automation.list.js +3 -1
  39. package/dist/commands/automation.list.js.map +1 -1
  40. package/dist/commands/billing.credits.purchase.d.ts.map +1 -1
  41. package/dist/commands/billing.credits.purchase.js +2 -1
  42. package/dist/commands/billing.credits.purchase.js.map +1 -1
  43. package/dist/commands/billing.status.d.ts.map +1 -1
  44. package/dist/commands/billing.status.js +2 -1
  45. package/dist/commands/billing.status.js.map +1 -1
  46. package/dist/commands/billing.subscription.read.d.ts.map +1 -1
  47. package/dist/commands/billing.subscription.read.js +4 -2
  48. package/dist/commands/billing.subscription.read.js.map +1 -1
  49. package/dist/commands/billing.subscription.upgrade.start.d.ts.map +1 -1
  50. package/dist/commands/billing.subscription.upgrade.start.js +2 -1
  51. package/dist/commands/billing.subscription.upgrade.start.js.map +1 -1
  52. package/dist/commands/brandkit.apply.d.ts.map +1 -1
  53. package/dist/commands/brandkit.apply.js +3 -2
  54. package/dist/commands/brandkit.apply.js.map +1 -1
  55. package/dist/commands/chat.send.d.ts.map +1 -1
  56. package/dist/commands/chat.send.js +124 -19
  57. package/dist/commands/chat.send.js.map +1 -1
  58. package/dist/commands/conversation.purge.d.ts.map +1 -1
  59. package/dist/commands/conversation.purge.js +3 -2
  60. package/dist/commands/conversation.purge.js.map +1 -1
  61. package/dist/commands/document.list.d.ts.map +1 -1
  62. package/dist/commands/document.list.js +4 -2
  63. package/dist/commands/document.list.js.map +1 -1
  64. package/dist/commands/documents.pdf.create.d.ts.map +1 -1
  65. package/dist/commands/documents.pdf.create.js +3 -2
  66. package/dist/commands/documents.pdf.create.js.map +1 -1
  67. package/dist/commands/form.fill.d.ts.map +1 -1
  68. package/dist/commands/form.fill.js +2 -1
  69. package/dist/commands/form.fill.js.map +1 -1
  70. package/dist/commands/graph.cypher.d.ts +3 -0
  71. package/dist/commands/graph.cypher.d.ts.map +1 -0
  72. package/dist/commands/graph.cypher.js +37 -0
  73. package/dist/commands/graph.cypher.js.map +1 -0
  74. package/dist/commands/graph.edge.delete.d.ts +3 -0
  75. package/dist/commands/graph.edge.delete.d.ts.map +1 -0
  76. package/dist/commands/graph.edge.delete.js +53 -0
  77. package/dist/commands/graph.edge.delete.js.map +1 -0
  78. package/dist/commands/graph.edge.upsert.d.ts +3 -0
  79. package/dist/commands/graph.edge.upsert.d.ts.map +1 -0
  80. package/dist/commands/graph.edge.upsert.js +47 -0
  81. package/dist/commands/graph.edge.upsert.js.map +1 -0
  82. package/dist/commands/graph.node.delete.d.ts +3 -0
  83. package/dist/commands/graph.node.delete.d.ts.map +1 -0
  84. package/dist/commands/graph.node.delete.js +34 -0
  85. package/dist/commands/graph.node.delete.js.map +1 -0
  86. package/dist/commands/graph.node.get.d.ts +3 -0
  87. package/dist/commands/graph.node.get.d.ts.map +1 -0
  88. package/dist/commands/graph.node.get.js +16 -0
  89. package/dist/commands/graph.node.get.js.map +1 -0
  90. package/dist/commands/graph.node.search.d.ts +3 -0
  91. package/dist/commands/graph.node.search.d.ts.map +1 -0
  92. package/dist/commands/graph.node.search.js +31 -0
  93. package/dist/commands/graph.node.search.js.map +1 -0
  94. package/dist/commands/graph.node.upsert.d.ts +3 -0
  95. package/dist/commands/graph.node.upsert.d.ts.map +1 -0
  96. package/dist/commands/graph.node.upsert.js +39 -0
  97. package/dist/commands/graph.node.upsert.js.map +1 -0
  98. package/dist/commands/image.list.d.ts.map +1 -1
  99. package/dist/commands/image.list.js +4 -2
  100. package/dist/commands/image.list.js.map +1 -1
  101. package/dist/commands/org.member.add.d.ts.map +1 -1
  102. package/dist/commands/org.member.add.js +2 -1
  103. package/dist/commands/org.member.add.js.map +1 -1
  104. package/dist/commands/org.member.invite.decline.d.ts.map +1 -1
  105. package/dist/commands/org.member.invite.decline.js +2 -1
  106. package/dist/commands/org.member.invite.decline.js.map +1 -1
  107. package/dist/commands/org.member.remove.d.ts.map +1 -1
  108. package/dist/commands/org.member.remove.js +2 -1
  109. package/dist/commands/org.member.remove.js.map +1 -1
  110. package/dist/commands/org.member.role.change.d.ts.map +1 -1
  111. package/dist/commands/org.member.role.change.js +2 -1
  112. package/dist/commands/org.member.role.change.js.map +1 -1
  113. package/dist/commands/plugin.credential.reauth.d.ts.map +1 -1
  114. package/dist/commands/plugin.credential.reauth.js.map +1 -1
  115. package/dist/commands/plugin.credential.set_secret.d.ts.map +1 -1
  116. package/dist/commands/plugin.credential.set_secret.js +2 -1
  117. package/dist/commands/plugin.credential.set_secret.js.map +1 -1
  118. package/dist/commands/plugin.denylist.add.d.ts.map +1 -1
  119. package/dist/commands/plugin.denylist.add.js +2 -1
  120. package/dist/commands/plugin.denylist.add.js.map +1 -1
  121. package/dist/commands/plugin.denylist.remove.d.ts.map +1 -1
  122. package/dist/commands/plugin.denylist.remove.js +2 -1
  123. package/dist/commands/plugin.denylist.remove.js.map +1 -1
  124. package/dist/commands/plugin.install.d.ts.map +1 -1
  125. package/dist/commands/plugin.install.js +2 -1
  126. package/dist/commands/plugin.install.js.map +1 -1
  127. package/dist/commands/plugin.list.d.ts.map +1 -1
  128. package/dist/commands/plugin.list.js +2 -1
  129. package/dist/commands/plugin.list.js.map +1 -1
  130. package/dist/commands/plugin.org.install.d.ts.map +1 -1
  131. package/dist/commands/plugin.org.install.js +2 -1
  132. package/dist/commands/plugin.org.install.js.map +1 -1
  133. package/dist/commands/plugin.org.install_bulk.d.ts.map +1 -1
  134. package/dist/commands/plugin.org.install_bulk.js +2 -1
  135. package/dist/commands/plugin.org.install_bulk.js.map +1 -1
  136. package/dist/commands/plugin.org.list.d.ts.map +1 -1
  137. package/dist/commands/plugin.org.list.js +4 -2
  138. package/dist/commands/plugin.org.list.js.map +1 -1
  139. package/dist/commands/plugin.org.set_enabled.d.ts.map +1 -1
  140. package/dist/commands/plugin.org.set_enabled.js +2 -1
  141. package/dist/commands/plugin.org.set_enabled.js.map +1 -1
  142. package/dist/commands/plugin.org.uninstall.d.ts.map +1 -1
  143. package/dist/commands/plugin.org.uninstall.js +2 -1
  144. package/dist/commands/plugin.org.uninstall.js.map +1 -1
  145. package/dist/commands/plugin.registry.add.d.ts.map +1 -1
  146. package/dist/commands/plugin.registry.add.js.map +1 -1
  147. package/dist/commands/plugin.registry.list.d.ts.map +1 -1
  148. package/dist/commands/plugin.registry.list.js.map +1 -1
  149. package/dist/commands/plugin.registry.remove.d.ts.map +1 -1
  150. package/dist/commands/plugin.registry.remove.js +2 -1
  151. package/dist/commands/plugin.registry.remove.js.map +1 -1
  152. package/dist/commands/plugin.registry.sync.d.ts.map +1 -1
  153. package/dist/commands/plugin.registry.sync.js +2 -1
  154. package/dist/commands/plugin.registry.sync.js.map +1 -1
  155. package/dist/commands/plugin.settings.set_auth_alerts.d.ts.map +1 -1
  156. package/dist/commands/plugin.settings.set_auth_alerts.js +3 -2
  157. package/dist/commands/plugin.settings.set_auth_alerts.js.map +1 -1
  158. package/dist/commands/plugin.uninstall.d.ts.map +1 -1
  159. package/dist/commands/plugin.uninstall.js +2 -1
  160. package/dist/commands/plugin.uninstall.js.map +1 -1
  161. package/dist/commands/plugin.workspace.set_enabled.d.ts.map +1 -1
  162. package/dist/commands/plugin.workspace.set_enabled.js +3 -2
  163. package/dist/commands/plugin.workspace.set_enabled.js.map +1 -1
  164. package/dist/commands/privacy.erase.d.ts.map +1 -1
  165. package/dist/commands/privacy.erase.js.map +1 -1
  166. package/dist/commands/privacy.export.d.ts.map +1 -1
  167. package/dist/commands/privacy.export.js.map +1 -1
  168. package/dist/commands/research.swarm.start.d.ts +3 -0
  169. package/dist/commands/research.swarm.start.d.ts.map +1 -0
  170. package/dist/commands/research.swarm.start.js +35 -0
  171. package/dist/commands/research.swarm.start.js.map +1 -0
  172. package/dist/commands/research.swarm.status.d.ts +3 -0
  173. package/dist/commands/research.swarm.status.d.ts.map +1 -0
  174. package/dist/commands/research.swarm.status.js +26 -0
  175. package/dist/commands/research.swarm.status.js.map +1 -0
  176. package/dist/commands/skill.workspace.list.d.ts.map +1 -1
  177. package/dist/commands/skill.workspace.list.js +4 -2
  178. package/dist/commands/skill.workspace.list.js.map +1 -1
  179. package/dist/commands/system.install.instructions.d.ts.map +1 -1
  180. package/dist/commands/system.install.instructions.js +7 -4
  181. package/dist/commands/system.install.instructions.js.map +1 -1
  182. package/dist/commands/web.fetch.d.ts +3 -0
  183. package/dist/commands/web.fetch.d.ts.map +1 -0
  184. package/dist/commands/web.fetch.js +39 -0
  185. package/dist/commands/web.fetch.js.map +1 -0
  186. package/dist/commands/web.search.d.ts +3 -0
  187. package/dist/commands/web.search.d.ts.map +1 -0
  188. package/dist/commands/web.search.js +50 -0
  189. package/dist/commands/web.search.js.map +1 -0
  190. package/dist/commands/workflow.cancel.d.ts.map +1 -1
  191. package/dist/commands/workflow.cancel.js +2 -1
  192. package/dist/commands/workflow.cancel.js.map +1 -1
  193. package/dist/commands/workflow.run.d.ts.map +1 -1
  194. package/dist/commands/workflow.run.js +2 -1
  195. package/dist/commands/workflow.run.js.map +1 -1
  196. package/dist/commands/workflow.status.d.ts.map +1 -1
  197. package/dist/commands/workflow.status.js +4 -2
  198. package/dist/commands/workflow.status.js.map +1 -1
  199. package/dist/commands/workspace.create.d.ts.map +1 -1
  200. package/dist/commands/workspace.create.js +2 -1
  201. package/dist/commands/workspace.create.js.map +1 -1
  202. package/dist/commands/workspace.list.d.ts.map +1 -1
  203. package/dist/commands/workspace.list.js +2 -1
  204. package/dist/commands/workspace.list.js.map +1 -1
  205. package/dist/commands/workspace.member.list.d.ts.map +1 -1
  206. package/dist/commands/workspace.member.list.js +3 -1
  207. package/dist/commands/workspace.member.list.js.map +1 -1
  208. package/dist/commands/workspace.model.settings.read.d.ts.map +1 -1
  209. package/dist/commands/workspace.model.settings.read.js +2 -1
  210. package/dist/commands/workspace.model.settings.read.js.map +1 -1
  211. package/dist/commands/workspace.model.settings.write.d.ts.map +1 -1
  212. package/dist/commands/workspace.model.settings.write.js +2 -1
  213. package/dist/commands/workspace.model.settings.write.js.map +1 -1
  214. package/dist/commands.test.js +202 -23
  215. package/dist/commands.test.js.map +1 -1
  216. package/dist/index.js +31 -0
  217. package/dist/index.js.map +1 -1
  218. package/dist/lib/config.d.ts +2 -0
  219. package/dist/lib/config.d.ts.map +1 -1
  220. package/dist/lib/config.js +7 -1
  221. package/dist/lib/config.js.map +1 -1
  222. package/package.json +1 -1
package/README.md CHANGED
@@ -1,445 +1,361 @@
1
1
  # Oxagen CLI
2
2
 
3
- A comprehensive command-line interface for Oxagen, enabling you to manage organizations, workspaces, conversations, and more directly from your terminal.
3
+ Command-line interface for the [Oxagen](https://oxagen.ai) platform. Chat with the agent, run workflows, generate content, manage your organization, and integrate external MCP servers — all from your terminal.
4
4
 
5
5
  ## Installation
6
6
 
7
- ### From npm (when published)
8
-
9
7
  ```bash
10
8
  npm install -g @oxagen/cli
11
9
  # or
12
- yarn global add @oxagen/cli
13
- # or
14
10
  pnpm add -g @oxagen/cli
15
11
  ```
16
12
 
17
- After installation, verify the CLI is available:
18
-
19
13
  ```bash
20
14
  oxagen --version
21
15
  ```
22
16
 
23
- ### From source (development)
24
-
25
- Clone the repository and run:
17
+ ### From source
26
18
 
27
19
  ```bash
28
20
  cd oxagen-monorepo
29
21
  pnpm install
30
- pnpm build
31
- pnpm -C apps/cli dev # for development with tsx
32
- # or
33
- pnpm -C apps/cli build && node apps/cli/dist/index.js # for production build
34
- ```
35
-
36
- ## Quick Start
37
-
38
- ### Authentication
39
-
40
- First, authenticate with your Oxagen account:
41
-
42
- ```bash
43
- oxagen auth login
22
+ pnpm -C apps/cli build
23
+ node apps/cli/dist/index.js --version
44
24
  ```
45
25
 
46
- You'll be prompted for your credentials. Your session is saved locally for subsequent commands.
47
-
48
- Check who you're logged in as:
26
+ ## Authentication
49
27
 
50
28
  ```bash
29
+ oxagen auth login --email you@example.com --password yourpassword
51
30
  oxagen auth whoami
52
- ```
53
-
54
- Log out when finished:
55
-
56
- ```bash
57
31
  oxagen auth logout
58
32
  ```
59
33
 
60
- ### Organizations & Workspaces
34
+ Your session is written to `~/.config/oxagen/` and reused by all subsequent commands.
61
35
 
62
- List your organizations:
63
-
64
- ```bash
65
- oxagen org list
66
- ```
36
+ ## Real-world scenarios
67
37
 
68
- Create a new organization:
38
+ ### Chat with the agent
69
39
 
70
40
  ```bash
71
- oxagen org create --name "My Organization"
72
- ```
41
+ # One-shot message
42
+ oxagen chat send "Summarize our Q2 pipeline and flag any blockers"
73
43
 
74
- List workspaces in an organization:
44
+ # Resume an existing conversation
45
+ oxagen chat send "Add the EMEA numbers too" --conversation conv_abc123
75
46
 
76
- ```bash
77
- oxagen workspace list
78
- ```
47
+ # List recent conversations
48
+ oxagen conversation list
79
49
 
80
- Create a new workspace:
50
+ # Post directly to a known conversation ID
51
+ oxagen conversation chat --conversation conv_abc123 --message "What changed since Monday?"
81
52
 
82
- ```bash
83
- oxagen workspace create --name "My Workspace"
53
+ # Rename a conversation for future reference
54
+ oxagen conversation rename --conversation conv_abc123 --name "Q2 Pipeline Review"
84
55
  ```
85
56
 
86
- ## Common Commands
87
-
88
- ### Authentication
89
-
90
- - `oxagen auth login` — Authenticate with your account
91
- - `oxagen auth logout` — Remove local session
92
- - `oxagen auth whoami` — Display current user
93
-
94
- ### Organization Management
95
-
96
- - `oxagen org list` — List all organizations
97
- - `oxagen org create` — Create a new organization
98
- - `oxagen org member add` — Add a member to an organization
99
- - `oxagen org member remove` — Remove a member from an organization
100
- - `oxagen org member role change` — Change a member's role
101
- - `oxagen org member invite accept` — Accept an org invite
102
- - `oxagen org member invite decline` — Decline an org invite
103
-
104
- ### Workspace Management
105
-
106
- - `oxagen workspace list` — List workspaces
107
- - `oxagen workspace create` — Create a workspace
108
- - `oxagen workspace member list` — List workspace members
109
- - `oxagen workspace invite send` — Send an invite to a workspace
110
- - `oxagen workspace model settings read` — Read model settings
111
- - `oxagen workspace model settings write` — Update model settings
112
-
113
- ### Conversations & Chat
114
-
115
- - `oxagen conversation list` — List conversations
116
- - `oxagen conversation chat` — Start interactive chat
117
- - `oxagen chat send` — Send a single message
118
- - `oxagen conversation rename` — Rename a conversation
119
- - `oxagen conversation archive` — Archive a conversation
120
- - `oxagen conversation delete` — Delete a conversation
121
- - `oxagen conversation purge` — Purge all conversations
122
-
123
- ### API Keys
124
-
125
- - `oxagen api-key create` — Create a new API key
126
- - `oxagen api-key revoke` — Revoke an API key
127
-
128
- ### Plugins
129
-
130
- - `oxagen plugin list` — List available plugins
131
- - `oxagen plugin install` — Install a plugin
132
- - `oxagen plugin uninstall` — Uninstall a plugin
133
- - `oxagen plugin org list` — List organization plugins
134
- - `oxagen plugin org install` — Org-level plugin install
135
- - `oxagen plugin org uninstall` — Org-level plugin uninstall
136
- - `oxagen plugin org install bulk` — Bulk install plugins
137
- - `oxagen plugin org set enabled` — Enable/disable org plugin
138
- - `oxagen plugin workspace set enabled` — Enable/disable workspace plugin
139
- - `oxagen plugin registry list` — List plugin registries
140
- - `oxagen plugin registry add` — Add a custom registry
141
- - `oxagen plugin registry remove` — Remove a registry
142
- - `oxagen plugin registry sync` — Sync plugins from registry
143
- - `oxagen plugin catalog get` — Get plugin from catalog
144
- - `oxagen plugin catalog browse` — Browse plugin catalog
145
- - `oxagen plugin credential reauth` — Re-authenticate plugin
146
- - `oxagen plugin credential set secret` — Set plugin credentials
147
- - `oxagen plugin denylist add` — Add to denylist
148
- - `oxagen plugin denylist remove` — Remove from denylist
149
- - `oxagen plugin settings set auth alerts` — Configure alerts
150
-
151
- ### Billing & Credits
152
-
153
- - `oxagen billing status` — View billing status
154
- - `oxagen billing credits purchase` — Purchase credits
155
- - `oxagen billing subscription read` — View subscription
156
- - `oxagen billing subscription upgrade start` — Start upgrade
157
-
158
- ### Agents & Workflows
159
-
160
- - `oxagen agent mcp list` — List agent MCP servers
161
- - `oxagen agent mcp register` — Register an MCP server
162
- - `oxagen agent skill list` — List agent skills
163
- - `oxagen agent tool list` — List available tools
164
- - `oxagen agent approval resolve` — Resolve an approval
165
- - `oxagen agent memory write` — Write to agent memory
166
- - `oxagen agent memory recall` — Recall from agent memory
167
- - `oxagen agent task background start` — Start background task
168
- - `oxagen agent task background read` — Read task status
169
- - `oxagen agent task background cancel` — Cancel task
170
- - `oxagen agent plan approve` — Approve an agent plan
171
- - `oxagen workflow run` — Run a workflow
172
- - `oxagen workflow status` — Check workflow status
173
- - `oxagen workflow cancel` — Cancel a workflow
174
-
175
- ### Content & Media
176
-
177
- - `oxagen image list` — List images
178
- - `oxagen image create` — Upload/create an image
179
- - `oxagen image generate` — Generate an image with AI
180
- - `oxagen image analyze` — Analyze an image
181
- - `oxagen document list` — List documents
182
- - `oxagen document create` — Create a document
183
- - `oxagen document read` — Read a document
184
- - `oxagen documents generate` — Generate documents
185
- - `oxagen documents pdf create` — Generate PDF from documents
186
- - `oxagen video generate` — Generate video
187
- - `oxagen svg generate` — Generate SVG
188
- - `oxagen asset upload` — Upload an asset
189
-
190
- ### Forms & Automation
191
-
192
- - `oxagen form create` — Create a form
193
- - `oxagen form submit` — Submit form data
194
- - `oxagen form fill` — Fill form fields
195
- - `oxagen automation list` — List automations
196
- - `oxagen automation create` — Create an automation
197
- - `oxagen automation trigger` — Trigger an automation
198
-
199
- ### Utilities
200
-
201
- - `oxagen notifications list` — List notifications
202
- - `oxagen notifications mark` — Mark notifications as read
203
- - `oxagen user preferences get` — Get user preferences
204
- - `oxagen user preferences read` — Read preferences
205
- - `oxagen user preferences update` — Update preferences
206
- - `oxagen user preferences write` — Write preferences
207
- - `oxagen skill workspace list` — List workspace skills
208
- - `oxagen archive create` — Create an archive
209
- - `oxagen brandkit apply` — Apply brand kit settings
210
-
211
- ## Usage Examples
212
-
213
- ### Interactive Chat Session
57
+ ### Run a workflow from CI/CD
214
58
 
215
59
  ```bash
216
- oxagen conversation chat --workspace my-workspace
217
- ```
60
+ # Trigger a release-notes workflow from a GitHub Action or deploy hook
61
+ oxagen workflow run \
62
+ --workflow release-notes-generator \
63
+ --input '{"version":"2.1.0","repo":"acme/platform"}'
218
64
 
219
- ### Send a Single Message
65
+ # Poll until it finishes
66
+ oxagen workflow status --id wf_xyz789
220
67
 
221
- ```bash
222
- oxagen chat send "What is the weather today?" --workspace my-workspace
68
+ # Cancel if something goes wrong mid-run
69
+ oxagen workflow cancel --id wf_xyz789
223
70
  ```
224
71
 
225
- ### Create and Configure
226
-
227
- ```bash
228
- # Create a new organization
229
- oxagen org create --name "Acme Corp"
72
+ ### Register an external MCP server
230
73
 
231
- # Create a workspace within it
232
- oxagen workspace create --name "Engineering"
74
+ Expose your own tools to the Oxagen agent. Once registered, the server appears in the web app's MCP picker and can be toggled on per-conversation.
233
75
 
234
- # Invite team members
235
- oxagen workspace invite send --email "alice@acme.com" --email "bob@acme.com"
76
+ ```bash
77
+ # Register a streamable-http server with bearer auth
78
+ oxagen agent mcp register \
79
+ --name "internal-data-api" \
80
+ --url https://tools.internal.example.com/mcp \
81
+ --transport streamable-http \
82
+ --auth bearer \
83
+ --auth-config '{"token":"sk-..."}'
84
+
85
+ # Register a local stdio server
86
+ oxagen agent mcp register \
87
+ --name "filesystem-tools" \
88
+ --url file:///usr/local/bin/my-mcp-server \
89
+ --transport stdio
90
+
91
+ # Check health and discovered tool counts
92
+ oxagen agent mcp list
236
93
  ```
237
94
 
238
- ### API Key Management
95
+ ### Connect Claude Code to Oxagen's MCP server
96
+
97
+ The Oxagen platform itself is an MCP server. Connect Claude Code, Claude Desktop, or Cursor to it using an API key.
239
98
 
99
+ **Claude Code**
240
100
  ```bash
241
- # Create an API key for programmatic access
242
- oxagen api-key create
101
+ oxagen api-key create # copy the key that's printed
243
102
 
244
- # Revoke a key by ID
245
- oxagen api-key revoke <key-id>
103
+ claude mcp add oxagen \
104
+ --transport http \
105
+ --url https://oxagen-v2-mcp.vercel.app/mcp \
106
+ --header "Authorization: Bearer $OXAGEN_API_KEY"
246
107
  ```
247
108
 
248
- ### Plugin Management
109
+ **Claude Desktop** — add to `claude_desktop_config.json`:
110
+ ```json
111
+ {
112
+ "mcpServers": {
113
+ "oxagen": {
114
+ "command": "npx",
115
+ "args": ["-y", "@oxagen/mcp-client"],
116
+ "env": { "OXAGEN_API_KEY": "your-key-here" }
117
+ }
118
+ }
119
+ }
120
+ ```
249
121
 
122
+ You can also retrieve connection instructions directly:
250
123
  ```bash
251
- # View available plugins
252
- oxagen plugin catalog browse
253
-
254
- # Install a plugin to your workspace
255
- oxagen plugin install <plugin-id>
256
-
257
- # Configure plugin credentials
258
- oxagen plugin credential set secret <plugin-id> <secret-name> <secret-value>
124
+ oxagen system install instructions
259
125
  ```
260
126
 
261
- ## Configuration
127
+ ### Generate images and media
262
128
 
263
- Settings are stored in your user's config directory:
264
- - **macOS**: `~/.config/oxagen/`
265
- - **Linux**: `~/.config/oxagen/`
266
- - **Windows**: `%APPDATA%\oxagen\`
129
+ ```bash
130
+ # Generate an image and print the URL
131
+ oxagen image generate --prompt "isometric diagram of a multi-agent system"
267
132
 
268
- Your authentication token is stored securely in the system keychain when available, with a fallback to the config directory.
133
+ # Generate and save to disk
134
+ oxagen image generate \
135
+ --prompt "product screenshot mockup, clean UI" \
136
+ --model gpt-image-1 \
137
+ --output ./assets/hero.png
269
138
 
270
- ## Troubleshooting
139
+ # Analyze an existing image
140
+ oxagen image analyze --image ./screenshot.png
271
141
 
272
- ### `command not found: oxagen`
142
+ # Generate a video clip
143
+ oxagen video generate --prompt "short animation of data flowing through a pipeline"
273
144
 
274
- Ensure the CLI is installed globally:
275
-
276
- ```bash
277
- npm list -g @oxagen/cli
145
+ # Generate an SVG illustration
146
+ oxagen svg generate --prompt "simple icon of a robot holding a document"
278
147
  ```
279
148
 
280
- If not installed, run:
149
+ ### Onboard a new team
281
150
 
282
151
  ```bash
283
- npm install -g @oxagen/cli
284
- ```
152
+ # Create the org and workspace
153
+ oxagen org create --name "Acme Corp"
154
+ oxagen workspace create --name "Engineering" --org acme-corp
285
155
 
286
- ### Authentication failures
156
+ # Invite members
157
+ oxagen workspace invite send --email alice@acme.com --org acme-corp --workspace engineering
158
+ oxagen workspace invite send --email bob@acme.com --org acme-corp --workspace engineering
287
159
 
288
- Clear your cached session and re-authenticate:
160
+ # Promote to admin after they accept
161
+ oxagen org member role change --user user_alice --role admin --org acme-corp
289
162
 
290
- ```bash
291
- oxagen auth logout
292
- oxagen auth login
163
+ # List who's in the workspace
164
+ oxagen workspace member list --org acme-corp --workspace engineering
293
165
  ```
294
166
 
295
- ### Check version and help
167
+ ### Work with documents
296
168
 
297
169
  ```bash
298
- oxagen --version
299
- oxagen --help
300
- oxagen <command> --help
301
- ```
170
+ # Create a document
171
+ oxagen document create --title "Architecture Overview" --content "# Overview\n..."
302
172
 
303
- ## Publishing to npm
173
+ # Generate a document from a prompt (agent writes it)
174
+ oxagen documents generate --prompt "Write a technical spec for our billing reconciliation system"
304
175
 
305
- ### Prerequisites
176
+ # Export to PDF
177
+ oxagen documents pdf create --document doc_abc123 --output spec.pdf
306
178
 
307
- 1. Ensure you have an npm account: https://www.npmjs.com/signup
308
- 2. Authenticate locally:
309
- ```bash
310
- npm login
311
- ```
312
-
313
- 3. Package must not be marked as `"private": true` in `package.json` (currently it is; see step below)
179
+ # List all documents
180
+ oxagen document list
181
+ ```
314
182
 
315
- ### Before Publishing
183
+ ### Manage plugins
316
184
 
317
- 1. Update the version in `apps/cli/package.json`:
185
+ ```bash
186
+ # Browse what's available
187
+ oxagen plugin catalog browse
318
188
 
319
- ```bash
320
- # Use semantic versioning
321
- npm version patch # 0.2.2 → 0.2.3 (bug fixes)
322
- npm version minor # 0.2.2 → 0.3.0 (new features, backwards compatible)
323
- npm version major # 0.2.2 → 1.0.0 (breaking changes)
324
- ```
189
+ # Install for the org
190
+ oxagen plugin org install --listing listing_linear
325
191
 
326
- Or manually edit the `version` field.
192
+ # Enable for a specific workspace only
193
+ oxagen plugin workspace set-enabled --plugin plugin_xyz --enabled true
327
194
 
328
- 2. Update `apps/cli/package.json` to remove the `"private": true` field:
195
+ # Set OAuth credentials
196
+ oxagen plugin credential set-secret --plugin plugin_linear --key access_token --value sk-...
329
197
 
330
- ```json
331
- {
332
- "name": "@oxagen/cli",
333
- "version": "0.3.0",
334
- "type": "module",
335
- "bin": {
336
- "oxagen": "./dist/index.js"
337
- }
338
- // ... rest of config
339
- }
340
- ```
198
+ # List what's installed
199
+ oxagen plugin org list
341
200
 
342
- 3. Build the distribution:
201
+ # Remove
202
+ oxagen plugin org uninstall --listing listing_linear
203
+ ```
343
204
 
344
- ```bash
345
- pnpm -C apps/cli build
346
- ```
205
+ ### Run background agent tasks
347
206
 
348
- 4. Verify the build is correct:
207
+ ```bash
208
+ # Start a long-running analysis task
209
+ oxagen agent task background start \
210
+ --description "Analyze all GitHub issues opened this week and produce a triage report"
349
211
 
350
- ```bash
351
- node apps/cli/dist/index.js --version
352
- node apps/cli/dist/index.js --help
353
- ```
212
+ # Check progress
213
+ oxagen agent task background read --task task_abc123
354
214
 
355
- ### Publishing
215
+ # Cancel
216
+ oxagen agent task background cancel --task task_abc123
217
+ ```
356
218
 
357
- From the monorepo root:
219
+ ### Automations
358
220
 
359
221
  ```bash
360
- # Option 1: Using npm directly from the CLI package directory
361
- cd apps/cli
362
- npm publish
222
+ # Create a scheduled automation
223
+ oxagen automation create \
224
+ --name "daily-standup-summary" \
225
+ --trigger '{"type":"cron","schedule":"0 9 * * 1-5"}'
363
226
 
364
- # Option 2: Using pnpm from monorepo root
365
- pnpm publish -C apps/cli
227
+ # Trigger manually (e.g., from a webhook handler)
228
+ oxagen automation trigger --automation auto_abc123
229
+
230
+ # List all automations
231
+ oxagen automation list
366
232
  ```
367
233
 
368
- ### Verification
234
+ ---
369
235
 
370
- Verify the package was published:
236
+ ## All commands
371
237
 
372
- ```bash
373
- npm view @oxagen/cli
374
- npm info @oxagen/cli
238
+ ```
239
+ oxagen auth login / logout / whoami
240
+
241
+ oxagen chat send
242
+ oxagen conversation list / rename / archive / delete / purge / chat
243
+
244
+ oxagen workflow run / status / cancel
245
+ oxagen automation create / list / trigger
246
+
247
+ oxagen agent mcp register / list
248
+ oxagen agent memory recall / write
249
+ oxagen agent skill list
250
+ oxagen agent task background start / read / cancel
251
+ oxagen agent tool list
252
+ oxagen agent plan create / approve
253
+ oxagen agent approval resolve
254
+
255
+ oxagen image generate / analyze / create / list
256
+ oxagen video generate
257
+ oxagen svg generate
258
+ oxagen documents generate / pdf create
259
+ oxagen document create / list / read
260
+ oxagen archive create
261
+ oxagen asset upload
262
+ oxagen form create / fill / submit
263
+ oxagen brandkit apply
264
+
265
+ oxagen org create / list
266
+ oxagen org member add / remove / role change / invite accept / invite decline
267
+ oxagen workspace create / list
268
+ oxagen workspace invite send
269
+ oxagen workspace member list
270
+ oxagen workspace model settings read / write
271
+
272
+ oxagen plugin catalog browse / get
273
+ oxagen plugin org install / install-bulk / uninstall / list / set-enabled
274
+ oxagen plugin workspace set-enabled
275
+ oxagen plugin registry add / list / remove / sync
276
+ oxagen plugin credential reauth / set-secret
277
+ oxagen plugin denylist add / remove
278
+ oxagen plugin settings set-auth-alerts
279
+
280
+ oxagen billing status
281
+ oxagen billing credits purchase
282
+ oxagen billing subscription read / upgrade start
283
+
284
+ oxagen api-key create / revoke
285
+
286
+ oxagen skill workspace list
287
+ oxagen user preferences read / write
288
+ oxagen notifications list / mark
289
+ oxagen privacy export / erase
290
+ oxagen system install instructions
375
291
  ```
376
292
 
377
- Install from npm to verify:
293
+ Pass `--help` to any command for flags and usage:
378
294
 
379
295
  ```bash
380
- npm install -g @oxagen/cli@latest
381
- oxagen --version
296
+ oxagen workflow run --help
382
297
  ```
383
298
 
384
- ### Post-Publish Checklist
385
-
386
- - [ ] Version bumped in `apps/cli/package.json`
387
- - [ ] `package.json` no longer marked `"private"`
388
- - [ ] Distribution built (`apps/cli/dist/` up-to-date)
389
- - [ ] Package published to npm
390
- - [ ] Installation verified with `npm install -g @oxagen/cli@latest`
391
- - [ ] Help text displays correctly: `oxagen --help`
392
- - [ ] Global command works: `oxagen --version`
393
- - [ ] Commit and tag pushed to repository
299
+ ---
394
300
 
395
- ### Automated Release (via pnpm scripts)
301
+ ## Configuration
396
302
 
397
- This monorepo includes automated release tooling:
303
+ Session token and defaults are stored in `~/.config/oxagen/`. To avoid passing org and workspace IDs on every command, set these environment variables:
398
304
 
399
305
  ```bash
400
- pnpm release:patch # Bumps all packages including @oxagen/cli
401
- pnpm release:minor
402
- pnpm release:major
306
+ export OXAGEN_ORG_ID=org_abc123
307
+ export OXAGEN_WORKSPACE_ID=ws_xyz789
308
+ export OXAGEN_API_TOKEN=sk-...
403
309
  ```
404
310
 
405
- These commands:
406
- - Bump version across all workspace packages (lockstep versioning)
407
- - Create a git tag
408
- - Publish to npm
409
- - Sync version to Vercel projects
311
+ The CLI checks environment variables first, then falls back to saved config, then to command-line flags:
410
312
 
411
- ## Development
313
+ ```bash
314
+ # Uses OXAGEN_WORKSPACE_ID env var if set, falls back to ~/.config/oxagen/config.json
315
+ oxagen automation list
412
316
 
413
- ### Building from source
317
+ # Overrides env var with explicit flag
318
+ oxagen automation list --workspace ws_different456
414
319
 
415
- ```bash
416
- pnpm -C apps/cli build
320
+ # Authenticate and save defaults to config
321
+ oxagen auth login --email you@example.com --password yourpassword
417
322
  ```
418
323
 
419
- ### Testing
324
+ ---
325
+
326
+ ## Troubleshooting
420
327
 
328
+ **`command not found: oxagen`** — ensure global install succeeded:
421
329
  ```bash
422
- pnpm -C apps/cli test:unit
330
+ npm list -g @oxagen/cli
331
+ npm install -g @oxagen/cli
423
332
  ```
424
333
 
425
- ### Linting
426
-
334
+ **Auth failures** — clear and re-authenticate:
427
335
  ```bash
428
- pnpm -C apps/cli lint
336
+ oxagen auth logout && oxagen auth login
429
337
  ```
430
338
 
431
- ### Interactive development
339
+ ---
340
+
341
+ ## Development
432
342
 
433
343
  ```bash
434
- pnpm -C apps/cli dev -- <command> [args]
344
+ pnpm -C apps/cli dev -- auth whoami # run from source with tsx
345
+ pnpm -C apps/cli build # compile to dist/
346
+ pnpm -C apps/cli test:unit # run unit tests
347
+ pnpm -C apps/cli lint # lint (zero warnings enforced)
348
+ pnpm -C apps/cli typecheck # type-check
435
349
  ```
436
350
 
437
- ## Support
351
+ Releases are managed monorepo-wide via `pnpm release:patch|minor|major`, which bumps all packages to the same version and syncs to Vercel.
438
352
 
439
- For issues, feature requests, or questions:
353
+ ---
354
+
355
+ ## Support
440
356
 
441
- - GitHub Issues: https://github.com/oxagen/oxagen-monorepo/issues
442
- - Documentation: https://oxagen-v2-docs.vercel.app
357
+ - Docs: https://oxagen-v2-docs.vercel.app
358
+ - Issues: https://github.com/oxagen/oxagen-monorepo/issues
443
359
  - Email: support@oxagen.ai
444
360
 
445
361
  ## License
@@ -1 +1 @@
1
- {"version":3,"file":"agent.mcp.list.d.ts","sourceRoot":"","sources":["../../src/commands/agent.mcp.list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAapC,eAAO,MAAM,mBAAmB,SAoB5B,CAAC"}
1
+ {"version":3,"file":"agent.mcp.list.d.ts","sourceRoot":"","sources":["../../src/commands/agent.mcp.list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAcpC,eAAO,MAAM,mBAAmB,SAqB5B,CAAC"}