@aiagenta2z/onekey-gateway 0.1.2 → 0.1.3
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 +15 -8
- package/dist/cli.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,11 +12,16 @@ 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
|
+
| Gateway Type | Description |
|
|
23
|
+
|---------------------------------------------------|----------------------------------------------------------------------------------------|
|
|
24
|
+
| Register Your New API | [OneKey Gateway Registry Documents](https://www.deepnlp.org/doc/onekey_agent_registry) |
|
|
20
25
|
|
|
21
26
|
|
|
22
27
|
### Architecture
|
|
@@ -101,7 +106,7 @@ prompt: New York City Italian Restaurants
|
|
|
101
106
|
|
|
102
107
|
```bash
|
|
103
108
|
|
|
104
|
-
onekey agent google-maps/google-maps maps_search_places '{"query":"New York City Italian Restaurants"}'
|
|
109
|
+
npx onekey agent google-maps/google-maps maps_search_places '{"query":"New York City Italian Restaurants"}'
|
|
105
110
|
```
|
|
106
111
|
Result
|
|
107
112
|
```shell
|
|
@@ -164,8 +169,8 @@ onekey agent google-maps/google-maps maps_search_places '{"query":"New York City
|
|
|
164
169
|
|
|
165
170
|
`agtm` package
|
|
166
171
|
```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
|
|
172
|
+
npx agtm skills add https://github.com/aiagenta2z/onekey-gateway ## add all onekey router skills
|
|
173
|
+
npx agtm skills add aiagenta2z/onekey-gateway --skill google-maps -g ## install to global path
|
|
169
174
|
```
|
|
170
175
|
`skills` package
|
|
171
176
|
```
|
|
@@ -219,6 +224,8 @@ onekey llm --provider gemini --model gemini-3-flash-preview --messages @messages
|
|
|
219
224
|
| 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
225
|
| Research QA | perplexity/perplexity [Doc](./docs/perplexity/README.md) | perplexity | perplexity_ask<br>perplexity_reason<br>perplexity_research<br>perplexity_search |
|
|
221
226
|
| 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 |
|
|
227
|
+
| 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 |
|
|
228
|
+
|
|
222
229
|
|
|
223
230
|
|
|
224
231
|
#### 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