← 返回
开发者工具 中文

apix

Use `apix` to search, browse, and execute API endpoints from local markdown vaults. Use this skill to discover REST API endpoints, inspect request/response s...
使用 `apix` 从本地 Markdown 库搜索、浏览和执行 API 端点。利用此技能发现 REST API 端点,检查请求/响应结构。
dngpng
开发者工具 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 710
下载
💾 4
安装
1
版本
#latest

概述

apix — API Explorer for Agents

apix is a CLI tool for importing, browsing, searching, and calling API endpoint documents stored as local markdown vaults.

Prerequisites & Installation

Before using apix, verify if it is installed:

apix --version

If it is not installed, install it using Homebrew (macOS/Linux):

brew tap apix-sh/tap
brew install apix

Or via the curl installer:

curl -fsSL https://apix.sh/install | sh

Agent Workflow Guidelines

When an API task is requested, follow this general workflow:

  1. Discover: Find the relevant endpoint route.

```bash

apix search "create pet"

# Or list available APIs: apix ls

```

  1. Inspect: Check the endpoint parameters and schema concisely to save your context window.

```bash

apix peek petstore/v1/pets/{petId}/GET

```

_Note: Only use apix show if you need the full, detailed documentation, as it can be long._

  1. Execute: Make the HTTP call using the route you found.

```bash

apix call demo/v1/items/{id}/POST -p id=item_123 -d '{"name":"item"}'

```

Core Commands

Search & Discovery

  • Search across all indexed APIs: apix search
  • List namespaces: apix ls
  • List endpoints in a namespace: apix ls / (e.g., apix ls petstore/v1)
  • Full-text search within a namespace: apix grep

Inspecting Endpoints

Routes follow the format: /// (e.g., petstore/v1/pets/GET).

  • Peek (Recommended for Agents): apix peek — Outputs the YAML frontmatter and condensed required input fields.
  • Show: apix show — Outputs the full markdown documentation for the route or type.

Executing HTTP Calls

apix call automatically resolves the URL, method, and auth requirements from the route's markdown frontmatter.

  • Basic call with a literal path segment:

```bash

apix call demo/v1/items/item_123/GET

```

_(apix automatically maps item_123 to the {id} parameter if the defined route is demo/v1/items/{id}/GET)_

  • Explicit parameters:

```bash

apix call demo/v1/items/{id}/POST \

-p id=item_123 \

-q expand=full \

-H "Authorization: Bearer " \

-d '{"name":"item"}'

```

  • -p =: Path parameter
  • -q =: Query parameter
  • -H "
    : ": HTTP Header
  • -d '' or -d @file.json: Request body

Importing Custom Specs

If the required API is not in the public registry, you can import an OpenAPI 3.x spec locally:

apix import /path/to/openapi.json --name myapi

Notes for Agents

  • When you execute apix commands via the shell, it detects that stdout is piped and will automatically emit raw markdown, which is perfectly structured for you to read.
  • apix routes are standard strings. If a route matches multiple sources, apix will throw an ambiguity error. In that case, prefix the route with the source (e.g., core/petstore/v1/pets/GET).
  • Prioritize peek over show to avoid flooding your context window with redundant schemas.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 07:24 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,487
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 672 📥 324,544
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,930