@aiagenta2z/onekey-gateway 0.1.2 → 0.1.4
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/README.md +33 -8
- package/dist/cli.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,11 +12,18 @@ you can eliminate multiple expensive subscriptions and maximize your benefits. M
|
|
|
12
12
|
|
|
13
13
|
OneKey Gateway provides CLI tool, Restful API, MCP, Skills and Python/Typescript methods for Agent and human to use commercial Agent APIs.
|
|
14
14
|
|
|
15
|
-
| Gateway Type | Description
|
|
16
|
-
|
|
17
|
-
| Agent APIs | Allow your AI Agent to Access APIs [OneKey Agent Router Doc](https://www.deepnlp.org/doc/onekey_agent_router)
|
|
18
|
-
| MCP | Allow your AI clients to connect to commercial Http MCP [OneKey MCP Router Doc](https://www.deepnlp.org/doc/onekey_mcp_router)
|
|
19
|
-
| LLM | Allow your AI clients to call LLM endpoint proxy [OneKey LLM Router Doc](https://www.deepnlp.org/doc/onekey_llm_router)
|
|
15
|
+
| Gateway Type | Description | BASE URL | CLI |
|
|
16
|
+
|-------------|--------------------------------------------------------------------------------------------------------------------------------|----------------------------------------|----------------|
|
|
17
|
+
| Agent APIs | Allow your AI Agent to Access APIs [OneKey Agent Router Doc](https://www.deepnlp.org/doc/onekey_agent_router) | https://agent.deepnlp.org/agent_router | `onekey agent` |
|
|
18
|
+
| MCP | Allow your AI clients to connect to commercial Http MCP [OneKey MCP Router Doc](https://www.deepnlp.org/doc/onekey_mcp_router) | https://agent.deepnlp.org/mcp | `onekey mcp` |
|
|
19
|
+
| LLM | Allow your AI clients to call LLM endpoint proxy [OneKey LLM Router Doc](https://www.deepnlp.org/doc/onekey_llm_router) | https://agent.deepnlp.org/llm | `onekey llm` |
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
Want to register your API? See the top ranked onekey gateway called [Agent API Skills MCP Calls Ranking](https://deepnlp.org/agent/rankings)
|
|
23
|
+
|
|
24
|
+
| Gateway Type | Description |
|
|
25
|
+
|---------------------------------------------------|----------------------------------------------------------------------------------------|
|
|
26
|
+
| Register Your New API | [OneKey Gateway Registry Documents](https://www.deepnlp.org/doc/onekey_agent_registry) |
|
|
20
27
|
|
|
21
28
|
|
|
22
29
|
### Architecture
|
|
@@ -101,7 +108,7 @@ prompt: New York City Italian Restaurants
|
|
|
101
108
|
|
|
102
109
|
```bash
|
|
103
110
|
|
|
104
|
-
onekey agent google-maps/google-maps maps_search_places '{"query":"New York City Italian Restaurants"}'
|
|
111
|
+
npx onekey agent google-maps/google-maps maps_search_places '{"query":"New York City Italian Restaurants"}'
|
|
105
112
|
```
|
|
106
113
|
Result
|
|
107
114
|
```shell
|
|
@@ -142,6 +149,22 @@ onekey agent craftsman-agent/craftsman-agent generate_lego_build_plan '{"prompt"
|
|
|
142
149
|
<img src="https://raw.githubusercontent.com/AI-Hub-Admin/Craftsman-Agent/refs/heads/main/docs/craftsman_agent_2.jpg" style="width:500px" alt="Image generation">
|
|
143
150
|
|
|
144
151
|
|
|
152
|
+
### Example 4. Generate Tesla Car Wrap
|
|
153
|
+
|
|
154
|
+
prompt: model YL F1 race car blue and purple with stars
|
|
155
|
+
model: tesla_model_yl
|
|
156
|
+
|
|
157
|
+
```bash
|
|
158
|
+
export DEEPNLP_ONEKEY_ROUTER_ACCESS=YOUR_ACCESS_KEY
|
|
159
|
+
npx onekey agent craftsman-agent/craftsman-agent generate_tesla_wraps '{"prompt":"I would like to paint my tesla model YL similar to F1 race car, color of a blue and purple with stars","images":[],"mode":"basic","car_model":"tesla_model_yl","output_number":1}'
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
<img src="https://raw.githubusercontent.com/AI-Hub-Admin/Craftsman-Agent/refs/heads/main/docs/model_yl_racing.png" style="width:500px" alt="Tesla Model YL">
|
|
163
|
+
|
|
164
|
+
```
|
|
165
|
+
{"success":true,"text":"","images":[{"url":"https://us-static.aiagenta2z.com/local/files-wd/onekey_llm_router/722aa763-ec48-48b5-acfd-c569f89ffc50.png"}]}
|
|
166
|
+
```
|
|
167
|
+
|
|
145
168
|
|
|
146
169
|
## Tutorial
|
|
147
170
|
|
|
@@ -164,8 +187,8 @@ onekey agent google-maps/google-maps maps_search_places '{"query":"New York City
|
|
|
164
187
|
|
|
165
188
|
`agtm` package
|
|
166
189
|
```bash
|
|
167
|
-
npx agtm add https://github.com/aiagenta2z/onekey-gateway ## add all onekey router skills
|
|
168
|
-
npx agtm add aiagenta2z/onekey-gateway --skill google-maps -g ## install to global path
|
|
190
|
+
npx agtm skills add https://github.com/aiagenta2z/onekey-gateway ## add all onekey router skills
|
|
191
|
+
npx agtm skills add aiagenta2z/onekey-gateway --skill google-maps -g ## install to global path
|
|
169
192
|
```
|
|
170
193
|
`skills` package
|
|
171
194
|
```
|
|
@@ -219,6 +242,8 @@ onekey llm --provider gemini --model gemini-3-flash-preview --messages @messages
|
|
|
219
242
|
| Charts | mcp-server-chart/mcp-server-chart [Doc](./docs/mcp-server-chart/README.md) | mcp-server-chart | generate_area_chart<br>generate_bar_chart<br>generate_boxplot_chart<br>generate_column_chart<br>generate_district_map<br>generate_dual_axes_chart<br>generate_fishbone_diagram<br>generate_flow_diagram<br>generate_funnel_chart<br>generate_histogram_chart<br>generate_line_chart<br>generate_liquid_chart<br>generate_mind_map<br>generate_network_graph<br>generate_organization_chart<br>generate_path_map<br>generate_pie_chart<br>generate_pin_map<br>generate_radar_chart<br>generate_sankey_chart<br>generate_scatter_chart<br>generate_spreadsheet<br>generate_treemap_chart<br>generate_venn_chart<br>generate_violin_chart<br>generate_waterfall_chart<br>generate_word_cloud_chart |
|
|
220
243
|
| Research QA | perplexity/perplexity [Doc](./docs/perplexity/README.md) | perplexity | perplexity_ask<br>perplexity_reason<br>perplexity_research<br>perplexity_search |
|
|
221
244
|
| 3D Generation | craftsman-agent/craftsman-agent [Doc](./docs/craftsman-agent/README.md) | craftsman-agent | generate_lego_build_plan<br>generate_minecraft_build_plan<br>generate_tesla_wraps |
|
|
245
|
+
| Finance | aiagenta2z/financeagent [Doc](./docs//README.md) | financeagent | get_hk_stock_market_hkex<br>get_cn_stock_market_shanghai_shenzhen<br>get_us_stock_market_nyse_nasdaq_dow<br>get_uk_stock_market_lse<br>get_india_stock_market_nse_india |
|
|
246
|
+
|
|
222
247
|
|
|
223
248
|
|
|
224
249
|
#### Example 1: Google Maps Search
|
package/dist/cli.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
const client_1 = require("./client");
|
|
5
5
|
const fs_1 = require("fs");
|
|
6
|
-
const DEFAULT_TIMEOUT_MS =
|
|
6
|
+
const DEFAULT_TIMEOUT_MS = 60000;
|
|
7
7
|
function parseArgs(argv) {
|
|
8
8
|
const flags = {};
|
|
9
9
|
const positionals = [];
|
package/package.json
CHANGED