Hub
The Hub is where Clips are discovered and invoked.
When you run pinix invoke todo list, the CLI sends the request to the Hub. The Hub finds the Clip instance for todo in its routing table, forwards the request, receives the result, and returns it to you. Agents invoke Clips through the same flow.
Design Principle: The Hub Only Sees Clips
Section titled “Design Principle: The Hub Only Sees Clips”The Hub does not care how a Clip is implemented. TypeScript, Go, and native programs are all the same to the Hub. They are Clips with aliases and commands.
No type branches. No special cases.
Each Clip has a unique alias on the Hub. This is the identifier used for invocation:
pinix hub add @pinix/todo # alias: todopinix hub add @pinix/todo --alias my-tasks # alias: my-tasks
pinix invoke todo list # 通过 alias 调用If no alias is specified, one is generated automatically from the package name.
Local Hub and Cloud Hub
Section titled “Local Hub and Cloud Hub”Pinix has two types of Hub:
| Local Hub | Cloud Hub | |
|---|---|---|
| Where it runs | On your machine, built into the daemon | hub.pinixai.com |
| Who can access it | Local CLI / Console | Any signed-in device |
| Clip sources | Locally installed Clips | Clips from all users connected to the Cloud Hub |
After pinix login, the daemon connects to the Cloud Hub as a Provider. Your local Clips become visible on the Cloud Hub, and you can also invoke Clips shared by others.
Invocation Flow
Section titled “Invocation Flow”- The Client (CLI / Console / Agent) sends a request to the Hub
- The Hub checks the routing table and finds the Provider for the target Clip
- The Provider sends the request to the Clip instance
- The Clip executes and returns the result
- The result is returned along the same path
Calls between Clips follow the same flow. When one Clip invokes another Clip, the call is still routed through the Hub.
Next Steps
Section titled “Next Steps”- Clip vs MCP & CLI — comparison with other tool approaches
- Provider Protocol — how Clips connect to the Hub (advanced developer topic)