Portable AI(随身AI)是一款 自带 API Key 的移动端 AI 调用工具。它不依赖任何第三方臃肿的应用,让你用自己购买的 API 服务,在手机上随时随地与 AI 对话、写代码、调试接口。
Your API keys. Your rules. No middleman.
graph LR
A["Configure<br/>API Key"] --> B["Choose<br/>Model"]
B --> C["Chat with<br/>AI"]
C --> D["Write &<br/>Run Code"]
C --> E["Attach<br/>Images"]
C --> F["Test<br/>APIs"]
D --> G["Monaco<br/>Editor"]
F --> H["403 Error<br/>Debugger"]
style A fill:#00E0FF,stroke:#00B8D4,color:#000
style G fill:#7C4DFF,stroke:#651FFF,color:#fff
style H fill:#FF6D00,stroke:#E65100,color:#fff
|
|
|
|
|
|
This is a hybrid app built with HBuilder. You can:
- Download the
.apkfrom Releases (coming soon) - Or build from source using HBuilderX
Open Settings ⚙️ and fill in:
| Field | Example | Required |
|---|---|---|
| API Endpoint | https://api.openai.com |
Yes |
| API Key | sk-your-key-here |
Yes |
| Model | gpt-4o-mini |
Yes |
Supports any OpenAI-compatible API — DeepSeek, SiliconFlow, Groq, Ollama, etc.
That's it. Open the app, type your message, and hit send.
Use your phone as a remote terminal for Claude Code on your PC:
cd claude-bridge
npm install
node server.jscloudflared tunnel --url ws://localhost:8765- Open Portable AI → Settings
- Enter the WebSocket URL and auth token
- Connect — you can now send commands to Claude Code from your phone
sequenceDiagram
participant Phone as 📱 Phone (Portable AI)
participant Tunnel as 🌐 Cloudflare Tunnel
participant Bridge as 🖥️ Bridge Server
participant Claude as 🤖 Claude Code CLI
Phone->>Tunnel: WebSocket + Auth Token
Tunnel->>Bridge: Forward connection
Bridge->>Bridge: Verify token
Bridge->>Claude: Spawn CLI process
Phone->>Bridge: User input
Bridge->>Claude: Forward to stdin
Claude-->>Bridge: stream-json output
Bridge-->>Phone: Broadcast response
The built-in editor provides a lightweight coding environment right on your phone:
- Editor: Monaco Editor with syntax highlighting
- Languages: JavaScript, TypeScript, Python, C/C++, Java, HTML, CSS, and more
- Packages: Install any NPM package and use it immediately
- Run: Execute code and see output in real-time
- AI Assist: Send your code to AI for review, refactoring, or generation
Portable-AI-edictor/
├── index.html # Main chat interface
├── editor.html # Built-in code editor (Monaco)
├── test-api.html # API debugging & 403 diagnosis tool
├── manifest.json # HBuilder app manifest
├── js/
│ └── plugins/
│ └── jscpp-runtime.js # C/C++ runtime plugin
├── img/
│ ├── icons/ # App icons (48–512px)
│ └── splash/ # Splash screens (ldpi–xxhdpi)
├── claude-bridge/
│ ├── server.js # WebSocket bridge server
│ ├── start.bat # Windows quick start
│ ├── package.json
│ └── node_modules/
└── LICENSE # MIT
| Variable | Required | Default | Description |
|---|---|---|---|
PORT |
No | 8765 |
WebSocket server port |
AUTH_TOKEN |
No | auto-generated | Authentication token |
| Category | Technology |
|---|---|
| App Framework | HBuilder (Hybrid App) |
| Chat UI | Vanilla HTML/CSS/JS |
| Code Editor | Monaco Editor |
| Bridge Server | Node.js + ws (WebSocket) |
| Tunnel | Cloudflare Tunnel |
| Design | Minimal, monochrome, mobile-first |
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'feat: add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
MIT