# Quick Start import { BookOpen, Bot, Boxes, Code2, Container, Handshake, Headphones, KeyRound, Network, Puzzle } from 'lucide-react'; New API is an open-source AI gateway and model API management system. Follow these steps to go from deployment to application integration. ## Start using New API } title="1. Deploy your instance" description="Start New API with Docker, a management panel, or a cluster." href="/en/docs/installation" /> } title="2. Configure a channel" description="Add a model provider, credentials, and available models." href="/en/docs/guide/console/channel-management" /> } title="3. Create an API token" description="Create a token for your application and call the unified AI API." href="/en/docs/guide/console/api-token" /> ## Choose a deployment method } title="Docker Compose" description="Run New API alongside services such as MySQL and Redis." href="/en/docs/installation/deployment-methods/docker-compose-installation" /> } title="Docker single container" description="Get started with a Docker image for evaluation or small deployments." href="/en/docs/installation/deployment-methods/docker-installation" /> Need a management panel, cluster, or local development environment? See [all deployment methods](/en/docs/installation). ## Explore the documentation } title="User guide" description="Manage your instance, channels, tokens, and models." href="/en/docs/guide/home" /> } title="API reference" description="Find request parameters, response formats, and examples." href="/en/docs/api" /> } title="AI applications" description="Connect AI clients and development tools." href="/en/docs/apps" /> } title="Skills" description="Use and manage New API with AI coding agents." href="/en/docs/skills" /> } title="Help & support" description="Find answers, troubleshoot, and join the community." href="/en/docs/support" /> } title="Business cooperation" description="Learn about collaboration and commercial services." href="/en/docs/business" /> Explore the project and ecosystem on the [New API official website (newapi.ai)](https://www.newapi.ai/) or [New API official website (newapi.pro)](https://www.newapi.pro/). # API Reference import { Card, Cards } from 'fumadocs-ui/components/card'; import { List, MessageSquare, FileText, Database, Search, ShieldCheck, Headphones, Radio, Image, Video, FileQuestion, Server, SlidersHorizontal, UserCheck, Users, KeyRound, Link2, Network, Blocks, Key, Ticket, CreditCard, ScrollText, ChartBar, ListTodo, FolderKanban, Store, ShieldAlert, } from 'lucide-react'; ## Overview New API provides a complete set of RESTful API interfaces, categorized into **AI Model APIs** and **Management APIs**. You can use these interfaces to invoke AI capabilities and perform system management functions. You can visit the [Apifox Playground](https://apifox.newapi.ai/) to test and debug API interfaces online, or browse the API documentation below. ## AI Model APIs AI Model APIs provide access to various AI capabilities and are compatible with the OpenAI API format. } title="Model List" description="Retrieve a list of available models." href="/en/docs/api/ai-model/models/list/listmodels" /> } title="Chat" description="Conversation completion interface." href="/en/docs/api/ai-model/chat/openai/createchatcompletion" /> } title="Completions" description="Traditional text completion interface." href="/en/docs/api/ai-model/completions/createcompletion" /> } title="Embeddings" description="Text embedding vector generation interface." href="/en/docs/api/ai-model/embeddings/createembedding" /> } title="Rerank" description="Document reranking interface." href="/en/docs/api/ai-model/rerank/creatererank" /> } title="Moderations" description="Content safety moderation interface. The content safety moderation interface is one of the compliance tools and does not replace the deployer's own safety governance obligations and upstream content policy requirements. Public-facing services should establish abuse reporting, log auditing, and handling mechanisms." href="/en/docs/api/ai-model/moderations/createmoderation" /> } title="Audio" description="Speech recognition and speech synthesis interfaces." href="/en/docs/api/ai-model/audio/openai/createspeech" /> } title="Real-time Speech" description="Real-time audio streaming interface." href="/en/docs/api/ai-model/realtime/createrealtimesession" /> } title="Images" description="AI image generation interface." href="/en/docs/api/ai-model/images/openai/post-v1-images-generations" /> } title="Video" description="AI video generation interface." href="/en/docs/api/ai-model/videos/sora/createvideo" /> } title="Unimplemented" description="Placeholder interface, not yet implemented." href="/en/docs/api/ai-model/unimplemented/files/listfiles" /> ## Management APIs Management APIs are used for backend operations such as system configuration, user management, and business management. } title="System" description="System information and status interface." href="/en/docs/api/management/system/status-get" /> } title="System Settings" description="System configuration management interface." href="/en/docs/api/management/system-settings/option-get" /> } title="User Authentication" description="User login, registration, password management, and other interfaces." href="/en/docs/api/management/user-auth/user-login-post" /> } title="User Management" description="User information management interface." href="/en/docs/api/management/user-management/user-self-get" /> } title="Two-Factor Authentication" description="2FA Two-Factor Authentication interface." href="/en/docs/api/management/two-factor-auth/user-2fa-status-get" /> } title="OAuth" description="Third-party OAuth login interface." href="/en/docs/api/management/oauth/oauth-github-get" /> } title="Channel Management" description="API channel configuration management interface." href="/en/docs/api/management/channel-management/channel-get" /> } title="Model Management" description="Model configuration management interface." href="/en/docs/api/management/model-management/models-get" /> } title="Token Management" description="API token management interface." href="/en/docs/api/management/token-management/token-get" /> } title="Redemption Codes" description="Redemption code management interface." href="/en/docs/api/management/redemption/redemption-get" /> } title="Payment" description="Payment and top-up interfaces." href="/en/docs/api/management/payment/user-topup-info-get" /> } title="Logs" description="Usage log query interface." href="/en/docs/api/management/logs/log-get" /> } title="Statistics" description="Data statistics interface." href="/en/docs/api/management/statistics/data-get" /> } title="Tasks" description="Asynchronous task management interface." href="/en/docs/api/management/tasks/task-get" /> } title="Groups" description="User group management interface." href="/en/docs/api/management/groups/group-get" /> } title="Vendors" description="Vendor management interface." href="/en/docs/api/management/vendors/vendors-get" /> } title="Security Verification" description="Security verification related interfaces." href="/en/docs/api/management/security-verification/verify-status-get" /> # Business Collaboration ## 💡 Our Original Intention The original intention behind New API's creation is simple: **to make AI accessible to more people and lower the barrier to entry for AI**. We believe that AI should not be a privilege for a few, but a tool accessible to everyone. Whether you are an independent developer, a startup team, or a large enterprise, you should be able to reduce internal access and management complexity under the premise of legal authorization and compliant deployment. ## 🤝 About Commercialization Our choice to commercialize is not to maximize profit, but to enable the project to **develop healthily and sustainably**. Servers incur costs, maintenance requires effort, and ecosystem development needs resources—moderate commercialization is a necessary guarantee for New API to continue serving the community. We pledge to invest profits back into product iteration, community building, and ecosystem expansion, ensuring that every bit of support translates into better services. ## 📜 Gentleman's Agreement The New API community has always upheld the concept of a **Gentleman's Agreement**: * We trust every user and provide flexible and open ways of use. * We do not impose cumbersome restrictions, trusting that everyone will use resources responsibly. * We expect users, while benefiting, to also respect the sustainable development of the project. * If your project benefits from New API, we welcome contributions back to the community in any form. This is an agreement based on trust and respect, and a continuation of the open-source spirit. ## 📬 Contact Information [newapi@quantumnous.com](mailto:newapi@quantumnous.com) Email replies are generally within 2-3 business days. WeChat Work QR Code New API is committed to providing developers and enterprises with a unified API gateway and usage management capabilities under legally authorized scenarios. If you wish to engage in in-depth collaboration with us at the product or technical level, we sincerely welcome your inquiry! Collaboration should be based on legal authorization, compliant deployment, and legitimate business scenarios, and adhere to upstream service terms, platform rules, and regulatory requirements. Clients must legally obtain upstream authorization and bear responsibility for their service qualifications, compliant operations, content security, and user management. # AionUi - Free Open-Source Desktop Office Agent 🚀 AionUi is a free, local, open-source Cowork, supporting various AI agents such as Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie. It provides a complete GUI interface and WebUI remote access functionality, serving as an open-source alternative to Cowork. * Official Website: [https://www.aionui.com](https://www.aionui.com) * GitHub Repository: [https://github.com/iOfficeAI/AionUi](https://github.com/iOfficeAI/AionUi) * Download Link: [https://github.com/iOfficeAI/AionUi/releases](https://github.com/iOfficeAI/AionUi/releases) AionUi Logo ## Core Features ### 💬 Multi-Session Chat * **Multi-session + Independent Context** - Allows opening multiple chat sessions simultaneously, each with its own independent context memory. * **Local Storage** - All conversation data is stored locally in an SQLite database and will not be lost. ### 🤖 Multi-Model Support * **Multi-Platform Support** - Supports mainstream models like Gemini, OpenAI, Claude, Qwen, with flexible switching. * **Local Model Support** - Supports local model deployment via Ollama, LM Studio, etc. ### 🤝 Multi-Agent Mode * **Run Multiple AI Agents Simultaneously** - Allows running multiple AI agents concurrently (e.g., Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, etc.). * **Unified MCP Management** - Unified management and configuration of all agents via Model Context Protocol (MCP), simplifying operation. * **Skills Configuration** - Supports configuring exclusive Skills for different agents to extend their capabilities. * **Assistant Customization** - Supports custom assistant configurations to create personalized AI workflows. * **Independent Configuration** - Each agent can be configured and used independently without interference. * **Flexible Switching** - Seamlessly switch between different agents to meet various scenario requirements. ### 🗂️ File Management * **File Tree Browsing + Drag-and-Drop Upload** - Browse files like a folder, supports drag-and-drop of files or folders for one-click import. * **Smart Organization** - AI can help organize folders and automatically categorize them. ### 📄 Preview Panel * **9+ Format Preview** - Supports formats like PDF, Word, Excel, PPT, code, Markdown, images, etc. * **Real-time Tracking + Editable** - Automatically tracks file changes, supports real-time editing and debugging of Markdown, code, HTML. ### 🎨 AI Image Generation and Editing * **Smart Image Generation** - Supports various image generation models such as Gemini 2.5 Flash Image Preview, Nano, Banana, etc. * **Image Recognition and Editing** - AI-powered image analysis and editing features. ### 🌐 Multi-Channel Access * **WebUI Remote Access** - Accessible via browser from any device on the network, supports mobile devices. * **Telegram Integration** - Supports interaction via Telegram bots. * **Feishu Integration** - Supports access and interaction via Feishu. * **Local Data Security** - All data is stored in a local SQLite database, suitable for server deployment. ## NewAPI Integration Method ### Parameter Entry Provider Type: Types supported by NewAPI API Key: Obtained from NewAPI API Address: NewAPI site address (e.g., `https:///v1`) Please use your self-deployed New API, or ensure that the service provider offers New API services with legitimate upstream authorization and compliance obligations. Do not connect API addresses or keys from unknown sources to a production environment. ### Configuration Steps 1. **Copy API key in NewAPI** Copy API Key 2. **Open AionUi Settings** * Go to the settings page in AionUi * Find the Model Configuration Tab * Click "Add Model" Open Settings 3. **Add New Provider** * Click "Add Model" * Select NewAPI Add NewAPI Provider 4. **Configure API Information** * API Address: Enter your NewAPI site address (format: `https:///v1`) * API Key: Paste the API Key copied from the NewAPI console 5. **Add Model** * Select the model to add from the dropdown * The model name should match the model name configured in NewAPI * Select the appropriate request protocol 6. **Start Using** * Return to the chat page * Select the configured NewAPI model to start a conversation ## Related Links * [GitHub Repository](https://github.com/iOfficeAI/AionUi) * [Complete Usage Guide](https://github.com/iOfficeAI/AionUi#-detailed-usage-guide) * [FAQ Frequently Asked Questions](https://github.com/iOfficeAI/AionUi#-support--help) # AQBot - Local-First Desktop AI Workbench In the New API console, go to System Settings -> Chat Settings and add the following shortcut option. It lets users fill AQBot from the token management page with one click: ```json { "AQBot": "aqbot://providers?name=New%20API&baseurl={address}&apikey={key}&type=openai" } ``` AQBot is a local-first, open-source desktop AI workbench (AGPL-3.0). It unifies multi-provider chat, ACP agents, knowledge bases, MCP tools, and a local API gateway, while keeping app data and user files on the machine. AQBot * Official Website: [https://app.aqbot.top](https://app.aqbot.top) * GitHub: [https://github.com/AQBot-Desktop/AQBot](https://github.com/AQBot-Desktop/AQBot) * Download: [GitHub Releases](https://github.com/AQBot-Desktop/AQBot/releases) * Official Docs: [Getting Started](https://app.aqbot.top/guide/getting-started) ## Core Features * **Multi-provider chat** — Connect OpenAI, Claude, Gemini, DeepSeek, Qwen, and any OpenAI-compatible endpoint * **Provider import** — Import a provider from an `aqbot://` link after confirmation * **Model management** — Sync remote model lists, capability tags, and latency tests * **Agent** — In-chat Agent (uses your configured provider APIs) plus an ACP Agent workbench * **Local data** — App state lives in `~/.aqbot/`; user files live in `~/Documents/aqbot/` See the [AQBot website](https://app.aqbot.top) for the full feature set. This page covers New API integration only. ## NewAPI Integration Method Please use your self-deployed New API, or ensure that the service provider has a New API service with legal upstream authorization and compliance obligations. Do not integrate API addresses or keys from unknown sources into a production environment. ### Method 1: One-Click Import (Recommended) 1. Install AQBot and open it at least once so the system registers the `aqbot://` protocol 2. In the New API console, add the JSON above under **System Settings → Chat Settings** 3. Open **Token Management** and choose **AQBot** from the token actions 4. The browser launches AQBot. Confirm the provider name, API host, type `openai`, and key prefix 5. After confirmation, AQBot opens **Settings → Provider Management**. It reuses a provider with the same API host + type, or creates a new one 6. Open that provider, click **Sync Models**, then return to chat and select a model `{address}` is the New API site root (for example `https://your-newapi.example`), with no query string. For the OpenAI type, AQBot appends `/v1` automatically. Import does not validate the key or sync models. ### Method 2: Manual Configuration 1. Copy the API Key from New API Token Management 2. In AQBot, go to **Settings → Provider Management → Add Provider** 3. Fill in: | Field | Value | | ------------- | ----------------------------------------------------------- | | Provider Name | For example `New API` | | Provider Type | `OpenAI` (recommended) | | API Host | New API site address, such as `https://your-newapi.example` | | API Key | Your New API token | 4. Click **Sync Models** to pull the models currently exposed by New API 5. Return to chat and select a synced model Switch model ### API Host Notes * Prefer the site root and let AQBot append `/v1` * If the host already ends with `/v1`, AQBot will not append another one * Add a trailing `!` only when you must disable automatic completion ### Optional: Native Protocols If New API also exposes Claude or Gemini native APIs, add another provider: | Use | Provider Type | API Host | | ---------------------------- | ------------- | --------- | | Chat Completions (default) | OpenAI | Site root | | Claude native `/v1/messages` | Anthropic | Site root | | Gemini native | Gemini | Site root | Change `type` in the one-click template to `anthropic` or `gemini`. The same API key can back multiple providers. ## FAQ * **Clicking AQBot does not open the app**: Install and launch the desktop app first. Opening only the website or a Vite dev server does not register `aqbot://` * **Import succeeds but chat fails**: Click **Sync Models**, and make sure the model ID matches the name New API actually exposes * **macOS says the app is damaged or the developer cannot be verified**: Follow the [AQBot README](https://github.com/AQBot-Desktop/AQBot) and [Getting Started](https://app.aqbot.top/guide/getting-started) to allow this app. You do not need to turn Gatekeeper off * **The one-click link contains an API key**: Generate it only on the signed-in token page. Do not post URLs that embed a real key ## Related Links * [AQBot GitHub](https://github.com/AQBot-Desktop/AQBot) * [Configure Providers (official docs)](https://app.aqbot.top/guide/providers) * [Download](https://github.com/AQBot-Desktop/AQBot/releases) # AstrBot - Agent Chatbot AstrBot is an open-source, all-in-one Agent chatbot platform that seamlessly integrates large language model capabilities into mainstream instant messaging software such as QQ, Feishu, DingTalk, and WeChat Work, creating a reliable and scalable conversational AI infrastructure for individuals, developers, and teams. Whether it's a personal AI companion, intelligent customer service, automation assistant, or enterprise knowledge base, AstrBot can quickly build production-ready AI applications within your instant messaging platform's workflow. * Official Website: [https://astrbot.app](https://astrbot.app) * Official Documentation: [https://docs.astrbot.app](https://docs.astrbot.app) * Project Homepage: [https://github.com/astrbotdevs/astrbot](https://github.com/astrbotdevs/astrbot) ## NewAPI Integration Method AstrBot supports integrating NewAPI as a model provider, allowing users to access and utilize various AI model services through NewAPI. ### Configuration Steps #### Obtain NewAPI API Key After registering and logging into NewAPI, click 'Console' in the top navigation bar, then click 'Token Management', and then click the 'Add Token' button to create a new API Key. Select the appropriate permissions and click 'Create'. create-api-key After successful creation, click the 'Copy Key' button to copy the generated API Key. copy-api-key #### Configure NewAPI Service Provider in AstrBot Open the AstrBot administration panel, go to the 'Model Providers' page, then click the 'Add Model Provider' button. NewAPI perfectly supports OpenAI Chat Completion and Responses interfaces. Click 'OpenAI' to enter the OpenAI provider configuration page. In the pop-up dialog, set the API Base URL to the NewAPI interface address. Please use your own deployed New API, or ensure that the service provider has legitimate upstream authorization and compliance obligations for the New API service. If you have deployed NewAPI locally, fill in the local address, for example, `http://localhost:3000/v1`. Do not connect API addresses or keys from unknown sources to a production environment. Then, enter the API Key into the 'API Key' field and click the 'Save' button. astrbot-provider-config Then click 'Save' to complete the NewAPI provider configuration. #### Apply Service Provider Go to the 'Configuration File' page, find the 'Model' section, change the 'Default Chat Model' to the NewAPI provider you just created, and click the 'Save' button. apply At this point, you have successfully configured NewAPI as AstrBot's model provider. Now, you can access and use various AI model services provided by NewAPI through AstrBot. # CC Switch - All-in-One AI CLI Management Tool In the New API console under System Settings -> Chat Settings, you can add the following shortcut to enable one-click fill for CC Switch from the token management page: ```json { "CC Switch": "ccswitch" } ``` 🔀 CC Switch is an open-source, cross-platform all-in-one AI CLI management tool. It supports one-click provider switching for Claude Code, Codex and Gemini CLI, unified MCP server management, system prompts management, and Skills extension management — letting you freely switch between multiple AI coding assistants without manually editing config files. * GitHub Repository: [https://github.com/farion1231/cc-switch](https://github.com/farion1231/cc-switch) * Download: [GitHub Releases](https://github.com/farion1231/cc-switch/releases) ## Key Features ### 🔌 Provider Management * **One-click switching** — Switch between Claude Code, Codex, and Gemini API configs instantly, no manual env vars or config file editing * **Multi-endpoint support** — Configure multiple endpoints per provider with API key management and latency speed tests * **4-tier model config** — Granular model selection across Haiku / Sonnet / Opus / Custom tiers ### 🛠️ MCP Server Management * **Unified cross-app management** — Manage MCP servers for Claude / Codex / Gemini from a single panel * **Three transport types** — Supports stdio, HTTP, and SSE (Server-Sent Events) * **Auto sync** — Unified import/export with bidirectional synchronization ### 💬 Prompts Management * **Multi-preset system prompts** — Unlimited presets with quick switching * **Cross-app support** — Claude (`CLAUDE.md`), Codex (`AGENTS.md`), Gemini (`GEMINI.md`) * **Markdown editor** — CodeMirror 6 with live preview ### 🌐 Multi-platform Support * **Desktop app** — Native installers for Windows, macOS, and Linux * **Web version** — Browser-accessible interface for headless servers / SSH environments * **CLI version** — Both interactive menu-driven and command-line modes ## NewAPI Integration CC Switch supports the `ccswitch://` Deep Link protocol, allowing one-click provider config import from the New API token management page. ### Configuration Steps 1. **On the New API token management page, click the dropdown menu for the corresponding token** Select the **CC Switch** option from the menu. The system will automatically launch CC Switch and open the configuration dialog. 2. **Complete the configuration in the dialog** CC Switch Configuration Dialog Field descriptions: * **Application**: Switch app type at the top — **Claude** / **Codex** / **Gemini**, select the target application as needed * **Name**: Enter a name for this config (e.g. `My Claude`) to easily identify and switch in CC Switch later * **Main Model** (required) — The primary model to use by default * **Haiku Model** — Lightweight, fast model * **Sonnet Model** — Balanced model * **Opus Model** — Most capable model All models are dropdown selections; unselected fields show "Please select model". 3. **Finish** Click **"Open CC Switch"** to import the config into CC Switch and start using it; click **"Cancel"** to discard. ## Installation ### macOS (Homebrew recommended) ```shell brew tap farion1231/ccswitch brew install --cask cc-switch ``` ### Windows Download the `.msi` installer or portable `.zip` from [Releases](https://github.com/farion1231/cc-switch/releases). ### Linux Download the `.deb` package or `.AppImage` from [Releases](https://github.com/farion1231/cc-switch/releases). ArchLinux users: ```shell paru -S cc-switch-bin ``` ### Web Version (Headless / SSH Servers) ```shell wget https://github.com/farion1231/cc-switch/releases/latest/download/cc-switch-web-linux-x64.tar.gz tar -xzf cc-switch-web-linux-x64.tar.gz cd cc-switch-web/ ./cc-switch-web ``` Default port `17666`, access via browser at `http://localhost:17666`. ## Related Links * [GitHub Repository](https://github.com/farion1231/cc-switch) * [Changelog](https://github.com/farion1231/cc-switch/blob/main/CHANGELOG.md) * [Web Version Repository](https://github.com/cp-yu/cc-switch-web) * [CLI Version Repository](https://github.com/thomas-jack/cc-switch-cli) # Cherry Studio - Desktop AI Client In the New API console's System Settings -> Chat Settings, you can add the following quick options for one-click filling into Cherry Studio on the token management page: ```json { "Cherry Studio": "cherrystudio://providers/api-keys?v=1&data={cherryConfig}" } ``` 🍒 Cherry Studio is a powerful desktop AI client designed for professional users, integrating 30+ industry-specific intelligent assistants to meet the needs of various work scenarios and significantly improve work efficiency. * Official Website: [https://cherry-ai.com](https://cherry-ai.com/) * Download Link: [https://cherry-ai.com/download](https://cherry-ai.com/download) * Official Documentation: [https://docs.cherry-ai.com](https://docs.cherry-ai.com) ## NewAPI Integration Method ### Parameter Configuration Provider Type: Types supported by NewAPI API Key: Obtained from NewAPI API Address: NewAPI Site Address Please use your self-deployed New API, or ensure that the service provider has a New API service with legal upstream authorization and compliance obligations. Do not integrate API addresses or keys from unknown sources into a production environment. ### Graphical Guide 1. Copy API key in NewAPI Copy API Key 2. Add Provider Add Provider 3. Add Model Add Model 4. Return to Chat Page Switch to Chat Page 5. Switch NewAPI Model Switch Model ## Drawing in Cherry Studio 1. First, add models that support drawing Drawing Models 2. Draw Draw # Claude Code Unleash Claude's raw power directly in your terminal. Search million-line codebases instantly. Turn hours-long workflows into a single command. Your tools. Your workflow. Your codebase, evolving at thought speed. * Official Homepage: [https://www.anthropic.com/claude-code](https://www.anthropic.com/claude-code) ## Demo introduce-01.webp introduce-02.webp ### Features | **Category** | **Feature** | | ---------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | **Code Understanding** | Deep codebase analysis, utilizing intelligent agents to search and understand project structure and dependencies | | | Automatically generates high-level code overviews, quickly helping users understand the codebase | | **Code Editing** | Supports multi-file collaborative editing, suitable for complex code modifications | | | Provides practical and usable code suggestions that align with project patterns and architecture | | **Integration Capabilities** | Supports direct execution in the terminal, eliminating context switching | | | Seamless integration with VS Code and JetBrains IDEs, no copy-pasting required | | **Code Generation & Optimization** | Automatically generates code, creates tests, fixes bugs, supporting the complete process from concept to commit | | | Optimized for code generation and understanding, combining advanced models like Claude Opus 4 | | **Security & Flexibility** | Changes require explicit user authorization, ensuring safer file and command operations | | | Adapts to user code standards, supports custom configurations | | **Toolchain Integration** | Supports integration with tools like GitHub and GitLab to achieve automated workflows | | | Integrates with test suites and build systems, enhancing existing development tools | | **Cross-Platform & Extensibility** | Supports Windows, macOS, and Linux operating systems | | | Configurable to run in SDKs or GitHub Actions, flexibly adapting to different needs | | **Key Application Scenarios** | Codebase onboarding and understanding, quick ramp-up for new members | | | Code issue fixing and optimization processes, from problem analysis to PR submission | | | Project code refactoring and new feature implementation | | **User Feedback Highlights** | Improves daily development efficiency, saving time spent on routine tasks | | | Excellent performance in handling complex multi-step tasks, expanding development possibilities | ## AI Model Configuration Method ### Windows Graphical Guide #### 1. Install Node.js Environment Claude Code requires a Node.js environment to run. * Open your browser and visit [https://nodejs.org/](https://nodejs.org/) * Click the "LTS" version to download (Long Term Support version recommended) * After downloading, double-click the .msi file * Follow the installation wizard to complete the installation, keeping default settings * It is recommended to use PowerShell instead of CMD * If you encounter permission issues, try running as administrator * Some antivirus software may report false positives; you may need to add an exception windows-img-01.webp windows-img-02.webp windows-img-03.webp windows-img-04.webp windows-img-05.webp After installation, open PowerShell or CMD and enter the following commands: ```bash node --version npm --version ``` If version numbers are displayed, the installation was successful. #### 2. Install Git Bash In a Windows environment, Git Bash is required to install Claude Code. After installation, environment variable setup and using Claude Code will still be done in regular PowerShell or CMD. * Visit [https://git-scm.com/downloads/win](https://git-scm.com/downloads/win) * Click "Download for Windows" to download the installer * Run the downloaded .exe installation file * Keep default settings during installation, and click "Next" to complete the installation windows-img-06.webp windows-img-07.webp windows-img-08.webp After installation, open Git Bash and enter the following command to verify: ```bash git --version ``` If a version number is displayed, the installation was successful. #### 3. Install Claude Code Open PowerShell and run the following command: ```bash npm install -g @anthropic-ai/claude-code ``` This command will download and install the latest version of Claude Code from the official npm repository. windows-img-09.webp ```powershell [Environment]::SetEnvironmentVariable('Path', ([Environment]::GetEnvironmentVariable('Path','User') + ";$HOME\.local\bin"), 'User') ``` After installation, enter the following command to check if it was successfully installed: ```bash claude --version ``` If a version number is displayed, congratulations! Claude Code has been successfully installed. #### 4. Set Environment Variables To allow Claude Code to connect to your relay service, you need to set multiple environment variables: ```powershell iex (irm 'https://raw.githubusercontent.com/QuantumNous/new-api-docs/refs/heads/main/helper/claude-cli-setup.ps1') ``` windows-configure #### 5. Start Using Claude Code You can now start using Claude Code! Open PowerShell and launch Claude Code directly: ```bash claude ``` To use in a specific project: ```bash # Navigate to your project directory cd C:\path\to\your\project # Launch Claude Code claude ``` windows-img-11.webp windows-img-12.webp windows-img-13.webp windows-img-14.webp windows-img-15.webp Enter the command: ```bash /model ``` Press Enter to select a model; usually, the default settings are sufficient. windows-img-16.webp windows-img-17.webp > Note: After modifying environment variables, all models (including officially preset models) will call the custom access point instead of using official account quotas. ### macOS Graphical Guide #### 1. Install Claude Code CLI Open Terminal macos-img-01.webp Open Terminal and run the following command: ```bash curl -fsSL https://claude.ai/install.sh | bash ``` Optional: Run the provided command when prompted ```bash echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc && source ~/.bashrc ``` macos-img-02.webp #### 2. Set Environment Variables To allow Claude Code to connect to a third-party relay service, you need to set environment variables: Enter the command: ```bash curl -fsSL https://raw.githubusercontent.com/QuantumNous/new-api-docs/refs/heads/main/helper/claude-cli-setup.sh | bash ``` macos-configure After installation, enter the following command to check if it was successfully installed: ```bash claude --version ``` If a version number is displayed, congratulations! Claude Code has been successfully installed. #### 3. Start Using Claude Code You can now start using Claude Code! Launch Claude Code directly: ```bash claude ``` To use in a specific project: ```bash # Navigate to your project directory cd /path/to/your/project # Launch Claude Code claude ``` macos-img-04.webp macos-img-05.webp macos-img-06.webp macos-img-07.webp macos-img-08.webp Enter the command: ```bash /model ``` Press Enter to select an official model; usually, the default model is sufficient. macos-img-09.webp macos-img-10.webp macos-img-11.webp > Note: After modifying the `ANTHROPIC_BASE_URL` environment variable, all models (including officially preset models) will call the custom access point instead of using official account quotas. #### 4. macOS Common Issues If the system prevents Claude Code from running: * Open "System Preferences" → "Security & Privacy" * Click "Open Anyway" or "Allow" * Or run in Terminal: `sudo spctl --master-disable` ### Linux Graphical Guide #### 1. Install Claude Code linux-img-01.webp Open Terminal and run the following command: ```bash curl -fsSL https://claude.ai/install.sh | bash ``` If you encounter permission issues, you can use sudo: ```bash sudo curl -fsSL https://claude.ai/install.sh | bash ``` linux-img-03.webp After installation, enter the following command to check if it was successfully installed: ```bash claude --version ``` If a version number is displayed, congratulations! Claude Code has been successfully installed. #### 2. Set Environment Variables To allow Claude Code to connect to your relay service, you need to set two environment variables: Enter the command: ```bash curl -fsSL https://raw.githubusercontent.com/QuantumNous/new-api-docs/refs/heads/main/helper/claude-cli-setup.sh | bash ``` macos-configure #### 3. Start Using Claude Code You can now start using Claude Code! Launch Claude Code directly: ```bash claude ``` To use in a specific project: ```bash # Navigate to your project directory cd /path/to/your/project # Launch Claude Code claude ``` linux-img-03.webp linux-img-04.webp linux-img-05.webp Enter the command: ```bash /model ``` Press Enter to select an official model; usually, the default model is sufficient. linux-img-06.webp linux-img-07.webp linux-img-08.webp linux-img-09.webp > Note: After modifying the `ANTHROPIC_BASE_URL` environment variable, all models (including officially preset models) will call the custom access point instead of using official account quotas. #### 4. Linux Common Issues Some Linux distributions require additional dependencies to be installed: ```bash # Ubuntu/Debian sudo apt install build-essential # CentOS/RHEL sudo dnf groupinstall "Development Tools" ``` Check the following points: * Confirm that you modified the correct configuration file (`.bashrc` or `.zshrc`) * Restart the terminal or run `source ~/.bashrc` * Verify settings: `echo $ANTHROPIC_BASE_URL` # OpenAI Codex CLI Codex CLI is a coding agent from OpenAI that runs locally on your computer. * Official Homepage: [https://chatgpt.com/codex](https://chatgpt.com/codex) * Project Homepage: [https://github.com/openai/codex](https://github.com/openai/codex) ## Demo introduce-01.webp ### Features \| **Category** | **Feature**\ title: OpenAI Codex CLI description: OpenAI Codex CLI Installation Tutorial — Install a terminal AI coding assistant on Windows, macOS, Linux, connecting to New API. Supports sandbox policies and atomic patch editing. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Codex CLI is a coding agent from OpenAI that runs locally on your computer. * Official Homepage: [https://chatgpt.com/codex](https://chatgpt.com/codex) * Project Homepage: [https://github.com/openai/codex](https://github.com/openai/codex) ## Demo introduce-01.webp ### Features \| **Category** | **Feature**\ \| Terminal-based Coding Assistant | Codex CLI is a terminal-based interactive coding assistant for editing code, generating patches, and running commands in the command line. | \| Tool-Driven Architecture | Provides tools such as `apply_patch`, `shell`, `update_plan`, and `multi_tool_use` for controlled modification of repository files and operations. | \| Atomic Patch Editing | Uses a specialized patch format to atomically add/update/delete files via `apply_patch`, facilitating auditing and rollback. | \| Sandbox and Approval | Supports sandbox policies (e.g., `workspace-write`, `read-only`) and approval modes (`on-request`, `on-failure`, `never`) to control write and network access permissions. | \| Plan Tracking | `update_plan` is used to list steps and track status, requiring only one `in_progress` step at all times to maintain clear progress. | \| Interaction Protocol | Sends brief introductory explanations before important operations, maintaining a friendly, concise tone and providing progress updates. | \| Security Constraints | Adheres to strict rules (no arbitrary changes to unrelated files, no adding copyright headers, no executing destructive commands), requiring user approval for sensitive operations. | \| Testing and Formatting | Recommends running relevant tests and formatting tools after modifications, but is not responsible for fixing issues unrelated to the current task. | \| Output and Style | Final output adheres to CLI rendering specifications (e.g., `**` for headings, backticks for paths/commands), maintaining a scannable and concise structure. | \| Parallel Execution | Supports running multiple tools in parallel via `multi_tool_use.parallel` to improve efficiency. | ## AI Model Configuration Method ### Windows Graphical Guide #### 1. Open Terminal windows_open_terminal #### 2. Install WSL For optimal performance on Windows, please install and use Windows Subsystem for Linux (WSL2). ```powershell wsl --install ``` Restart your Windows computer after installation. * It is recommended to use PowerShell instead of CMD. * If you encounter permission issues, try running as administrator. * Some antivirus software may report false positives; you need to add an exception. windows-img-03.webp ```bash curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash ``` windows-img-04.webp Open a new PowerShell window in the tab bar and open WSL: ```bash wsl ``` Install Node.js (version numbers are time-sensitive; please install the corresponding version according to the [OpenAI official website](https://developers.openai.com/codex/windows) requirements): ```bash nvm install 22 ``` windows-img-05.webp #### 3. Install Codex CLI ```bash npm i -g @openai/codex ``` This command will download and install the latest version of Codex CLI from the official npm repository. windows-img-06.webp #### 4. Modify Configuration File ```powershell iex (irm 'https://raw.githubusercontent.com/QuantumNous/new-api-docs/refs/heads/main/helper/codex-cli-setup.ps1') ``` windows-configure #### 5. Start Using Codex CLI Now you can start using Codex CLI! Launch WSL2: ```bash wsl ``` Launch Codex CLI directly: ```bash codex ``` Use in a specific project: ```bash cd mnt/c/path/to/your/project codex ``` Press Enter to launch Codex CLI. windows-img-09.webp windows-img-10.webp > Set Codex CLI permissions: 1. Allow Codex to modify files directly; 2. Codex requires manual authorization to modify files. ```bash /model ``` windows-img-11.webp windows-img-12.webp windows-img-13.webp windows-img-14.webp > Note: After modifying the API address, all models (including officially preset models) will call your configured, legally authorized self-owned or organizational access point. Please use your own deployed New API, or confirm that the service provider has a New API service with legal upstream authorization and compliance obligations. Do not connect API addresses or keys from unknown sources to a production environment. ### macOS Graphical Guide #### 1. Install Homebrew (Skip if already installed) Homebrew is the missing package manager for macOS. Official Website: [https://brew.sh](https://brew.sh) macos-img-01.webp ```bash /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" ``` macos-img-02.webp macos-img-03.webp macos-img-04.webp #### 2. Install Node.js Environment Update Homebrew: ```bash brew update ``` Install Node.js: ```bash brew install node ``` * If you encounter permission issues, you might need to use `sudo`. * The first run may require permission in System Preferences. * It is recommended to use Terminal or iTerm2. macos-img-05.webp macos-img-06.webp After installation, open the terminal and enter the following commands: ```bash node --version npm --version ``` If version numbers are displayed, the installation was successful. #### 3. Install Codex CLI Open the terminal and run the following command: ```bash # Install Codex CLI globally npm install -g @openai/codex ``` If you encounter permission issues, you can use sudo: ```bash sudo npm install -g @openai/codex ``` macos-img-07.webp After installation, enter the following command to check if the installation was successful: ```bash codex --version ``` If a version number is displayed, congratulations! Codex CLI has been successfully installed. #### 4. Modify Configuration File ```bash curl -fsSL https://raw.githubusercontent.com/QuantumNous/new-api-docs/refs/heads/main/helper/codex-cli-setup.sh | bash ``` macos-configure #### 5. Start Using Codex CLI Now you can start using Codex CLI! Launch Codex CLI directly: ```bash codex ``` Use in a specific project: ```bash cd /path/to/your/project codex ``` Press Enter to launch Codex CLI. macos-img-09.webp macos-img-10.webp > Set Codex CLI permissions: 1. Allow Codex to modify files directly; 2. Codex requires manual authorization to modify files. macos-img-11.webp macos-img-12.webp macos-img-13.webp macos-img-14.webp > Note: After modifying the API address, all models (including officially preset models) will call your configured, legally authorized self-owned or organizational access point. #### 6. macOS Common Issues and Solutions Try the following solutions: * Install with `sudo`: `sudo npm install -g @openai/codex` * Or configure `npm` to use the user directory: `npm config set prefix ~/.npm-global` If the system prevents Codex CLI from running: * Open "System Preferences" → "Security & Privacy" * Click "Open Anyway" or "Allow" * Or run in Terminal: `sudo spctl --master-disable` ### Linux Graphical Guide #### 1. Install Node.js Environment Codex CLI requires a Node.js environment to run. Add NodeSource repository: ```bash sudo curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash - ``` Install Node.js: ```bash sudo apt-get install -y nodejs ``` * Some distributions may require additional dependencies. * If you encounter permission issues, use sudo. * Ensure your user has write permissions in npm's global directory. linux-img-01.webp linux-img-02.webp After installation, open the terminal and enter the following commands: ```bash node --version npm --version ``` If version numbers are displayed, the installation was successful. #### 2. Install Codex CLI Open the terminal and run the following command: ```bash # Install Codex CLI globally npm install -g @openai/codex ``` If you encounter permission issues, you can use sudo: ```bash sudo npm install -g @openai/codex ``` linux-img-03.webp After installation, enter the following command to check if the installation was successful: ```bash codex --version ``` If a version number is displayed, congratulations! Codex CLI has been successfully installed. #### 3. Modify Configuration File ```bash curl -fsSL https://raw.githubusercontent.com/QuantumNous/new-api-docs/refs/heads/main/helper/codex-cli-setup.sh | bash ``` macos-configure #### 4. Start Using Codex CLI Now you can start using Codex CLI! Launch Codex CLI directly: ```bash codex ``` Use in a specific project: ```bash # Enter your project directory cd /path/to/your/project # Launch Codex CLI codex ``` Press Enter to launch Codex CLI. linux-img-05.webp linux-img-06.webp > Set Codex CLI permissions: 1. Allow Codex to modify files directly; 2. Codex requires manual authorization to modify files. linux-img-07.webp linux-img-08.webp linux-img-09.webp linux-img-10.webp > Note: After modifying the API address, all models (including officially preset models) will call your configured, legally authorized self-owned or organizational access point. #### 5. Linux Common Issues and Solutions Try the following solutions: * Install with `sudo`: `sudo npm install -g @openai/codex` * Or configure `npm` to use the user directory: `npm config set prefix ~/.npm-global` * Then add to PATH: `export PATH=~/.npm-global/bin:$PATH` Some Linux distributions require additional dependencies: ```bash # Ubuntu/Debian sudo apt install build-essential ``` ```bash # CentOS/RHEL sudo dnf groupinstall "Development Tools" ``` # DeepChat - Commercial-Friendly Full-Featured AI Agent Client In the New API console, go to System Settings -> Chat Settings and add the following shortcut option. It lets users fill DeepChat from the token management page with one click: ```json { "DeepChat": "deepchat://provider/install?v=1&data={deepchatConfig}" } ``` DeepChat is an open-source, cross-platform, commercial-friendly full-featured AI Agent client. It supports cloud and local models, MCP tool calls, Skills, ACP, Agent integration, and remote-control workflows, making it suitable for users who need unified Provider management and advanced AI Agents. * Official Website: [https://deepchat.thinkinai.xyz](https://deepchat.thinkinai.xyz) * GitHub Repository: [https://github.com/ThinkInAIXYZ/deepchat](https://github.com/ThinkInAIXYZ/deepchat) * Download Address: [https://deepchat.thinkinai.xyz/#/download](https://deepchat.thinkinai.xyz/#/download) ## NewAPI Integration Method ### Method 1: One-Click Import 1. In the New API console sidebar, open **Token Management** and find the token you want to use Open Token Management 2. Select **DeepChat** from the token actions Select DeepChat 3. Let the browser launch DeepChat and confirm opening the app Open DeepChat 4. Confirm the configuration in DeepChat's Provider import preview Confirm DeepChat Configuration 5. Open the model list and select a New API model to start using it Open Model List ### Method 2: Manual Import 1. Copy the API Key and site address from the New API console New API Manual Configuration Guide 2. In DeepChat settings, add or edit the New API Provider, then fill in the API address and API Key DeepChat Manual Configuration Guide 3. Open the model list and select a New API model to start using it Open Model List ## Related Links * [DeepChat GitHub Repository](https://github.com/ThinkInAIXYZ/deepchat) * [DeepChat Download Page](https://deepchat.thinkinai.xyz/#/download) # Factory Droid CLI Droid CLI is a command-line tool developed by Factory AI, designed to run as an AI software engineering agent. It allows users to interact with various large language models through the terminal, build, debug, and refactor code, and even create complete applications. * Official Homepage: [https://factory.ai/product/cli](https://factory.ai/product/cli) * Official Documentation: [https://docs.factory.ai/cli/getting-started/quickstart](https://docs.factory.ai/cli/getting-started/quickstart) ## Demo droid.webp ### Features | Category | Feature | Value/Capability | Example/Notes | | ------------------------------ | --------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------------------------------- | | Quick Start with CLI | 30-second installation; launch droid interactive session in project directory; supports macOS/Linux and Windows | Rapid integration into current projects, no new tools required | Windows Installation: `irm https://app.factory.ai/cli/windows \| iex`; Launch: `droid` | | End-to-End Feature Development | Full-process automation from planning to implementation to testing; transparent review process | Accelerate delivery, maintain human oversight | Native diff viewing and approval process (see "Transparency and Control") | | Deep Codebase Understanding | Integrates organizational shared knowledge from codebases, documentation, issue tracking; context-aware, improves over time | More accurate suggestions and changes | Continuously leverages knowledge across repositories and documents | | Engineering System Integration | Native integration with Jira, Notion, Slack, and other tools; development work stays synchronized with team processes | Reduce tool switching and information silos | "etc." indicates more integrations | | Production-Grade Automation | Workflows reusable locally and in CI/CD; enterprise-grade security and compliance built-in | Consistency and auditability | Adapts to pipelines and enterprise environments | | Enterprise Capabilities | Private deployment options, SOC-2 compliance, air-gapped environments | Meets security and compliance requirements | Prioritizes security and quality | | Enhance Existing Tools | Works in terminal, IDE, and existing development environments; no need to switch editors or learn new interfaces | Maintain existing work habits, low migration cost | Deep integration with familiar tools | | Transparency and Control | Every decision is visible and reviewable; complete oversight of code changes; native diff viewing and approval workflows | Reduce risk, enhance controllability | Audit-friendly, traceable | | Model Flexibility | Not locked to a single AI provider; choose the best model per task; consistent organizational behavior and memory | Optimal choice between performance and cost | Supports multi-model routing | | Next Steps & Resources | Quickstart, Common Use Cases, IDE Integration, Configuration, AGENTS.md | Facilitates adoption and practice | See "Next steps/Additional resources" on the page | ## AI Model Configuration Method ### Windows Graphical Guide #### 1. Open Terminal windows_open_terminal #### 2. Install Factory Droid CLI Official one-click installation command: ```powershell irm https://app.factory.ai/cli/windows | iex ``` windows-install #### 3. Modify Configuration File Droid CLI requires modifying the configuration file to use third-party APIs. windows-configure.webp ```powershell iex (irm 'https://raw.githubusercontent.com/QuantumNous/new-api-docs/refs/heads/main/helper/factory-cli-setup.ps1') ``` #### 4. Start Using Droid CLI Now you can start using Droid CLI! Launch Droid CLI directly: ```bash droid ``` Use in a specific project: ```bash # Navigate to your project directory cd C:\path\to\your\project # Launch Droid CLI droid ``` Press Enter to launch Droid CLI. Droid CLI requires users to log in to an official account (free) before use. #### 5. Windows Common Issues Solution This is usually a permission issue. Try the following solutions: * Run PowerShell as an administrator * Or configure `npm` to use the user directory: `npm config set prefix %APPDATA%\npm` If you encounter an execution policy restriction, run: ```powershell Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser ``` ### macOS/Linux Graphical Guide #### 1. Install Droid CLI Open your terminal and run the following command: ```bash curl -fsSL https://app.factory.ai/cli | sh ``` macos-open-terminal macos-img-02.webp Follow the installation prompts to modify environment variables (copy the installation prompt code directly): For Linux, choose `~/.bashrc` or `~/.zshrc` as appropriate. ```bash echo 'export PATH=/Users/modify_here/.local/bin:$PATH' >> ~/.zshrc source ~/.zshrc ``` #### 2. Modify Configuration File Droid CLI requires modifying the configuration file to use third-party APIs. ```bash curl -fsSL https://raw.githubusercontent.com/QuantumNous/new-api-docs/refs/heads/main/helper/factory-cli-setup.sh | bash ``` macos-img-03.webp #### 3. Start Using Droid CLI Now you can start using Droid CLI! Launch Droid CLI directly: ```bash droid ``` Use in a specific project: ```bash # Navigate to your project directory cd /path/to/your/project # Launch Droid CLI droid ``` Press Enter to launch Droid CLI. > Droid CLI requires users to log in to an official account (free) before use. # FluentRead - Open Source Translation Plugin In the System Settings -> Chat Settings of the New API console, you can add the following shortcut options for easy one-click population to FluentRead on the Token Management page: ```json { "流畅阅读": "fluentread" } ``` 🌊 FluentRead is an open-source browser translation plugin dedicated to providing a native-like reading experience. * Project Address: [https://github.com/Bistutu/FluentRead](https://github.com/Bistutu/FluentRead) ## 🌟 Core Features ### Smart Translation Engine * **Multi-Engine Support**: Supports 20+ translation engines * **Traditional Translation**: Microsoft Translate, Google Translate, DeepL Translate, etc. * **AI Large Models**: OpenAI, DeepSeek, Kimi, Ollama, etc. * **Custom Engine**: Supports custom translation service configuration ### Immersive Reading Experience * **Bilingual Comparison**: Original and translated text displayed side-by-side for easier reading * **Selection Translation**: Select any text to get instant translation results * **One-Click Copy**: Quickly copy translated text to improve reading efficiency * **Full-Page Translation**: One-click translation of the entire webpage with a floating button, no page refresh required ### Privacy and Customization * **Privacy Protection**: All data stored locally, open-source and transparent code * **High Customization**: Rich customization options to meet different scenario needs * **Completely Free**: Open-source and free, non-commercial project ## 📦 Installation Methods | Browser | Installation Method | | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | **Chrome** | [Chrome Web Store](https://chromewebstore.google.com/detail/%E6%B5%81%E7%95%85%E9%98%85%E8%AF%BB/djnlaiohfaaifbibleebjggkghlmcpcj?hl=zh-CN\&authuser=0) \| [Domestic Mirror](https://www.crxsoso.com/webstore/detail/djnlaiohfaaifbibleebjggkghlmcpcj) | | **Edge** | [Edge Add-ons Store](https://microsoftedge.microsoft.com/addons/detail/%E6%B5%81%E7%95%85%E9%98%85%E8%AF%BB/kakgmllfpjldjhcnkghpplmlbnmcoflp?hl=zh-CN) | | **Firefox** | [Firefox Add-ons Store](https://addons.mozilla.org/zh-CN/firefox/addon/%E6%B5%81%E7%95%85%E9%98%85%E8%AF%BB/) | ## 🚀 Configuration Methods ### Import Configuration from New API Console (Recommended) After the FluentRead plugin is installed in your browser, opening the New API console -> Token Management page will display a prompt to add FluentRead. 添加提示 After selecting a model, click 'One-click fill to FluentRead', and a confirmation window will pop up. Check if the corresponding information is correct. 确认 After confirming the import, the New API configuration in FluentRead will be enabled. 配置结果 ### Manually Fill in Configuration in FluentRead 手动配置 | Configuration Item | Content | | ------------------- | --------------------------------------- | | Translation Service | NewAPI | | Access Token | NewAPI Key | | NewAPI Endpoint | NewAPI Deployment Address (without /v1) | | Model | Select from list, or custom model | | Custom Model | Model Name | # AI Applications import { Card, Cards } from 'fumadocs-ui/components/card'; import { Cherry, Sparkles, Terminal, BookOpen, MessageCircle, Languages, Bot, Settings, } from 'lucide-react'; ## Overview New API is compatible with various popular AI applications and tools. Below is a list of verified supported applications and their configuration guides. ## Supported Applications } title="AionUi" description="Free, local, open-source 24/7 Cowork and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more." href="/en/docs/apps/aionui" /> } title="AQBot" description="A local-first desktop AI workbench with multi-provider chat and ACP agents. Import New API in one click via aqbot://." href="/en/docs/apps/aqbot" /> } title="CC Switch" description="One-click fill from New API token page; configure Claude, Codex, or Gemini with main and variant models in the popup." href="/en/docs/apps/cc-switch" /> } title="Cherry Studio" description="A powerful AI assistant client that supports multi-model conversations." href="/en/docs/apps/cherry-studio" /> } title="DeepChat" description="An open-source, cross-platform multi-model AI client with one-click New API provider import via DeepLink." href="/en/docs/apps/deepchat" /> } title="Memoh" description="A containerized AI agent platform where each bot runs in its own container with long-term memory and multi-channel support." href="/en/docs/apps/memoh" /> } title="OpenClaw" description="A self-hosted AI assistant platform — install OpenClaw, connect to New API, and manage agents across Feishu, Discord, Slack, and more." href="/en/docs/apps/openclaw" /> } title="Fluent Read" description="An AI-powered smart reading and translation assistant." href="/en/docs/apps/fluent-read" /> } title="LangBot" description="A large language model-based chatbot framework." href="/en/docs/apps/langbot" /> } title="Luna Translator" description="A real-time translation tool for games and documents." href="/en/docs/apps/luna-translator" /> } title="AstrBot" description="An open-source, all-in-one Agent chatbot platform." href="/en/docs/apps/astrbot" /> } title="Claude Code" description="An Anthropic Claude-powered code editor integration." href="/en/docs/apps/claude-code" /> } title="Codex CLI" description="A command-line interface AI code assistant tool." href="/en/docs/apps/codex-cli" /> } title="Factory Droid CLI" description="An AI agent tool for automating workflows." href="/en/docs/apps/factory-droid-cli" /> ## Integration Guide Most applications only require configuring the following information to connect to New API: 1. **API Address**: Your New API service address 2. **API Key**: The Token generated in the New API console 3. **Model Name**: Select the model to use For specific configuration steps, please refer to the detailed documentation of each application. # LangBot - Instant Messaging Bot Development Platform LangBot is an open-source instant messaging bot development platform that supports various instant messaging platforms such as Feishu, DingTalk, WeChat, QQ, Telegram, Discord, Slack, etc. It integrates with mainstream global AI models, supports various AI application capabilities like Knowledge Base, Agent, MCP, and is perfectly compatible with NewAPI. * Official Website: [https://langbot.app](https://langbot.app/) * Download Address: [https://github.com/langbot-app/LangBot/releases](https://github.com/langbot-app/LangBot/releases) * Official Documentation: [https://docs.langbot.app](https://docs.langbot.app/) * Open Source Address: [https://github.com/langbot-app/LangBot](https://github.com/langbot-app/LangBot) ## Integrating NewAPI LangBot supports integrating with locally deployed NewAPI and third-party NewAPI services built using NewAPI. ### Usage 1. Obtain an API key from NewAPI 获取 API key If NewAPI is deployed locally, please configure the API address yourself (refer to [Container Network Connection](https://docs.langbot.app/en/workshop/network-details.html)). If using a third-party NewAPI service, you can copy the address from the page. Note that `/v1` needs to be appended to the address. 2. Add a model in LangBot, select NewAPI as the provider, and fill in the corresponding API key and API address 添加 NewAPI 模型 3. Select the model to use in the pipeline 选择模型 4. Use it by chatting in conversation debugging or by chatting with a bot bound to the pipeline 对话 微信对话 For deploying and configuring bots, please refer to [Deploying Bots](https://docs.langbot.app/en/deploy/platforms/readme.html). ### Using LangBot Knowledge Base LangBot supports using NewAPI's embedding models and utilizing them as vector models for the knowledge base. 1. Add an embedding model in LangBot, select NewAPI as the provider 添加嵌入模型 2. Select the embedding model when creating a new knowledge base 使用嵌入模型 For more usage instructions, please refer to the LangBot official documentation: [https://docs.langbot.app](https://docs.langbot.app/) # LunaTranslator - Open Source GalGame Translator In the New API console's System Settings -> Chat Settings, you can add the following shortcut option for one-click population into LunaTranslator from the Token Management page: ```json { "LunaTranslator": "lunatranslator://llmapi/base64?data={cheryConfig}" } ``` LunaTranslator is an open-source and free visual novel (GalGame) translator, dedicated to providing a native-level visual novel gaming experience. * Project Address: [https://github.com/HIllya51/LunaTranslator](https://github.com/HIllya51/LunaTranslator) * Project Documentation: [https://docs.lunatranslator.org/en/README.html](https://docs.lunatranslator.org/en/README.html) ## Feature Support * **HOOK** Primarily uses HOOK to extract game text, adapting to almost all common and niche visual novels. * **In-game Translation** For some games, translation can be directly embedded into the game for an immersive experience. * **HOOK Emulator** For most games on NS/PSP/PSV/PS2, HOOK emulator support allows direct reading of game text. * **OCR** Built-in high-precision OCR models, and supports many other online & offline OCR engines for flexible reading of any text. * **Rich Translation Interfaces** Supports almost all translation engines, including large language model translation, offline translation, etc. * **Language Learning** Supports Japanese word segmentation and kana furigana, AnkiConnect, and Yomitan plugin. * **Speech Synthesis** Supports a large number of online & offline speech synthesis engines. * **Speech Recognition** On Windows 10 and Windows 11, Windows Speech Recognition can be used. ## Installation Method Download and install from [LunaTranslator Documentation - Download & Launch & Update](https://docs.lunatranslator.org/en/README.html) ## Integrating NewAPI into LunaTranslator LunaTranslator supports integration with locally deployed New API. Please use your own deployed New API, or ensure that the service provider has legitimate upstream authorization and compliance obligations for their New API service. Do not connect API addresses or keys from unknown sources to production environments. ### One-Click Configuration 1. In the New API console's `System Settings` -> `Chat Settings`, add the following shortcut option: ```json { "LunaTranslator": "lunatranslator://llmapi/base64?data={cheryConfig}" } ``` add_config 2. In the **`NewAPI`** -> `Console` -> `Token Management` tab, select the token you want to use in LunaTranslator, click the dropdown option next to the chat button, choose `LunaTranslator`, and you will be redirected to LunaTranslator with the API address and API Key automatically configured. 跳转到 LunaTranslator 3. In **`LunaTranslator`** -> `Settings` -> `Translation Settings` -> `Large Models`, a new large model interface configuration will appear; click Edit. 设置api 4. Click the refresh button next to the **model** dropdown to retrieve the NewAPI platform's model list, select or enter the model name, then click OK to save. 设置模型 5. Check if the toggle switch next to the **new\_api** large model interface configuration is turned on. If not enabled, enable the interface to start using it. 开启配置 ### Manual Configuration 1. In the **`NewAPI`** -> `Console` -> `Token Management` tab, obtain the API Key. 获取 API Key 2. In **`LunaTranslator`** -> `Settings` - `Translation Settings` -> `Large Models`, select Add. 添加 API 3. Copy the **Large Model General Interface** template and add a new interface. 添加 API2 4. In the **newly added interface**, fill in the corresponding API Address and API Key. 设置 API1 设置 API2 5. Click the refresh button next to the **model** dropdown to retrieve the NewAPI platform's model list, select or enter the model name, then click OK to save. 设置 API3 6. Click the toggle switch next to **NewAPI** to enable the interface and start using it. 打开API For more usage methods, please refer to the official LunaTranslator documentation: [LunaTranslator Documentation - Large Model Translation Interface](https://docs.lunatranslator.org/en/guochandamoxing.html) # Memoh - Containerized AI Agent Platform Memoh is an open-source, self-hosted AI agent platform where each bot runs in its own isolated container with persistent memory and a dedicated filesystem. It supports 9 channels including Telegram, Discord, Lark (Feishu), QQ, Matrix, WeCom, WeChat, Email, and a built-in Web UI, along with MCP tool calling, browser automation, scheduled tasks, and other rich agent capabilities. * Website: [https://memoh.sh](https://memoh.sh) * Documentation: [https://docs.memoh.ai](https://docs.memoh.ai) * GitHub: [https://github.com/memohai/Memoh](https://github.com/memohai/Memoh) ## Key Features * **Containerized Isolation**: Each bot runs in its own containerd container with a dedicated filesystem and network, supporting snapshots and data import/export * **Memory Engine**: LLM-driven fact extraction, hybrid retrieval (dense + sparse + BM25), 24-hour context loading, memory compaction and rebuild * **Multi-Channel Support**: Telegram, Discord, Lark (Feishu), QQ, Matrix, WeCom, WeChat, Email, Web UI * **MCP Support**: Full MCP protocol support (HTTP / SSE / Stdio / OAuth), with independent MCP connection management per bot * **Browser Automation**: Built-in headless browser powered by Playwright, supporting web browsing, form filling, screenshots, and more * **Web Dashboard**: Modern management interface built with Vue 3 + Tailwind CSS, featuring streaming chat, tool call visualization, file management, and more ## Quick Installation Memoh is deployed via Docker. One-click install (requires Docker): ```bash curl -fsSL https://memoh.sh | sudo sh ``` Or install manually: ```bash git clone --depth 1 https://github.com/memohai/Memoh.git cd Memoh cp conf/app.docker.toml config.toml # Edit the config.toml configuration file sudo docker compose up -d ``` After startup, visit `http://localhost:8082`. Default credentials: `admin` / `admin123`. ## NewAPI Integration Memoh supports any OpenAI-compatible model provider, allowing you to use NewAPI to centrally manage and access various AI model services. ### Configuration Steps #### Obtain a NewAPI API Key After registering and logging in to NewAPI, click "Console" in the top navigation bar, then click "Token Management", and click the "Add Token" button to create a new API Key. Select the appropriate permissions and click "Create". Once created, click the copy button to copy the generated API Key. copy-api-key #### Add a Model Provider in Memoh Log in to the Memoh Web dashboard, go to the provider management page, and click NewAPI. switch-to-newapi-provider Fill in the following information on the configuration page: * **API Base URL**: Enter the NewAPI endpoint URL, e.g. `https://api.example.com/v1` (use `http://localhost:3000/v1` for local deployments) * **API Key**: Paste the API Key copied from NewAPI Click Save to complete the provider configuration. #### Import Models After configuring the provider, go to the model management page and click auto-import or manually add the models you need. #### Configure a Model for Your Bot Go to the bot settings page, find the model configuration section, switch the default chat model to the one added via the NewAPI provider, and click Save. set_chat_model You have now successfully configured NewAPI as the model provider for Memoh. You can chat with AI bots through any of Memoh's channels (Telegram, Discord, Lark, etc.), and all requests will be routed through NewAPI. # OpenClaw - Self-hosted AI Assistant Platform OpenClaw is an open-source, self-hosted personal AI assistant platform that connects messaging apps to AI agents running on your own hardware. Designed for developers and advanced users, it allows you to have an autonomous AI assistant without giving up control of your data. * Official Homepage: [https://openclaw.ai](https://openclaw.ai) * Project Documentation: [https://docs.openclaw.ai](https://docs.openclaw.ai) * GitHub: [https://github.com/openclaw/openclaw](https://github.com/openclaw/openclaw) OpenClaw is completely open-source. You can browse the source code, submit issues, or contribute on [OpenClaw's GitHub repository](https://github.com/openclaw/openclaw). This tutorial covers the complete steps for installing, configuring, and integrating OpenClaw with New API. ## 🌟 Core Features ### Multi-channel Integration * **Multi-channel Integration**: Supports various messaging channels like Telegram, Discord, WhatsApp, iMessage, and can be extended to more platforms via plugins. * **Single Gateway**: Unified management of all channels through a single Gateway process. * **Voice Support**: Supports macOS/iOS/Android voice interaction. * **Canvas Interface**: Can render interactive Canvas interfaces. ### Self-hosting and Data Security * **Fully Self-hosted**: Runs on your own machine or server. * **Open Source Transparency**: MIT open-source license, completely transparent code. * **Local Data**: Context and skills are stored on your local computer, not in the cloud. ### Intelligent Agent Capabilities * **Continuous Operation**: Supports persistent background operation with long-term memory. * **Scheduled Tasks**: Supports cron scheduled tasks. * **Session Isolation**: Isolates sessions by agent/workspace/sender. * **Multi-agent Routing**: Supports collaborative work among multiple agents. * **Tool Calling**: Native support for tool calling and code execution. ## 📦 Preparation Before Integration * Node.js 22 or higher * An available New API address (usually ending with `/v1`) * An available New API API Key * Please use your own deployed New API, or confirm that the service provider has legitimate upstream authorization and compliance obligations for their New API service. Do not connect unknown API addresses or keys to production environments. Before integrating New API, it's recommended to first get the Gateway and Control UI running according to OpenClaw's official current recommended process. This makes it easier to distinguish whether OpenClaw itself is not starting or if the model provider configuration is incorrect when troubleshooting later. ### 1. Install OpenClaw (macOS/Linux) ```bash curl -fsSL https://openclaw.ai/install.sh | bash ``` For other installation methods, refer to the OpenClaw official documentation: [Getting Started](https://docs.openclaw.ai/start/getting-started). ### 2. Run the Onboarding Wizard ```bash openclaw onboard --install-daemon ``` This wizard will complete basic authentication, Gateway setup, and optional channel initialization. The goal here is to get OpenClaw running first, then switch the default model to New API later. ### 3. Check Gateway and Control UI ```bash openclaw gateway status ``` ```bash openclaw dashboard ``` If the browser can open the Control UI, it means OpenClaw's basic operation is normal. At this stage, there's no need to configure Telegram, Discord, Feishu, or other messaging channels yet. ### 4. Locate the Configuration File OpenClaw's configuration file is usually located at `~/.openclaw/openclaw.json`. You can continue to modify it based on what the onboarding wizard generated. If you run OpenClaw under a dedicated service account, or wish to customize the configuration/state directory, you can use: * `OPENCLAW_HOME` * `OPENCLAW_STATE_DIR` * `OPENCLAW_CONFIG_PATH` For detailed instructions, see the official environment variables documentation: [Environment Variables](https://docs.openclaw.ai/help/environment). ## 🚀 Using New API as a Model Provider OpenClaw supports integrating custom or OpenAI-compatible model gateways via `models.providers`. For New API, the most common approach is to add it as a custom provider to the configuration, then point the default model to `newapi/model-ID`. ### Integration Approach 1. Declare a `newapi` provider under `models.providers`. 2. Point `baseUrl` to your New API address, ensuring it includes `/v1`. 3. Set `api` to `openai-completions`. 4. List the model IDs you want OpenClaw to use in `models`. 5. Switch the default model in `agents.defaults.model.primary` to `newapi/...`. ### Recommended Practice: Store API Key in Environment Variables First, provide your New API key in the current shell, service environment, or an `.env` file readable by OpenClaw: ```bash export NEWAPI_API_KEY="sk-your-newapi-key" ``` Then, add or modify the following snippet in `openclaw.json`: ```json5 { models: { mode: "merge", providers: { newapi: { baseUrl: "https:///v1", apiKey: "${NEWAPI_API_KEY}", api: "openai-completions", models: [ { id: "gemini-2.5-flash", name: "Gemini 2.5 Flash" }, { id: "kimi-k2.5", name: "Kimi K2.5" }, ], }, }, }, agents: { defaults: { model: { primary: "newapi/gemini-2.5-flash", fallbacks: ["newapi/kimi-k2.5"], }, models: { "newapi/gemini-2.5-flash": { alias: "flash" }, "newapi/kimi-k2.5": { alias: "kimi" }, }, }, }, } ``` This is not a complete configuration that must be copied exactly, but rather the most critical part for integrating New API. As long as the `provider`, model IDs, and default model references are correct, OpenClaw will be able to call your exposed model resources via New API. ### Key Configuration Details | Configuration Item | Description | | --------------------------------- | ----------------------------------------------------------------------------------------------- | | `models.mode` | Recommended to set to `merge`, appending `newapi` while retaining OpenClaw's built-in providers | | `models.providers.newapi.baseUrl` | Your New API address, usually needs to include `/v1` | | `models.providers.newapi.apiKey` | New API key, recommended to inject via `${NEWAPI_API_KEY}` | | `models.providers.newapi.api` | For OpenAI-compatible gateways like New API, use `openai-completions` | | `models.providers.newapi.models` | The model IDs listed here must match the actual model names exposed by your New API | | `agents.defaults.model.primary` | Default primary model, format must be `provider/model-id` | | `agents.defaults.model.fallbacks` | List of fallback models, automatically switches if the primary model fails | | `agents.defaults.models` | Optional, used to create aliases for models, convenient for referencing in UI or sessions | ### Verify Successful Integration After completing the configuration, return to the Control UI or reopen it: ```bash openclaw dashboard ``` If you can initiate conversations normally in OpenClaw and the default model has become `newapi/...`, then the integration is successful. You can also use: ```bash openclaw models list ``` to confirm that models with the `newapi/` prefix appear in the selectable list. ### Common Issues * `baseUrl` missing `/v1`: This is one of the most common integration errors. * Incorrect model ID: `primary` and `fallbacks` must correspond to the `id` in `models.providers.newapi.models`. * API key only effective in the current terminal: If Gateway runs as a background service, ensure the service process can also read `NEWAPI_API_KEY`. * For foreground troubleshooting: Use the official foreground running method `openclaw gateway --port 18789` to observe logs and errors. # About The About page in the navigation bar can be configured in System Settings -> Other Settings. About # Documentation Clicking "Documentation" in the top navigation bar will redirect to the documentation webpage (the documentation address is configured in System Settings -> Operation Settings). Documentation # Home Homepage content can be configured in System Settings -> Other Settings. Homepage # Pricing Here you can view site-wide model pricing. Pricing # Installation & Deployment import { Card, Cards } from 'fumadocs-ui/components/card'; import { Container, Boxes, Server, Network, Code2, Settings, RefreshCw, FileCode, } from 'lucide-react'; ## Overview New API supports multiple deployment methods. You can choose the most suitable solution based on your technical background and usage scenario. ## Deployment Methods } title="Docker Compose Deployment" description="Orchestrate multiple services using Docker Compose, suitable for production environments." href="/en/docs/installation/deployment-methods/docker-compose-installation" /> } title="Docker Single Container Deployment" description="Quick deployment using Docker image, suitable for personal use." href="/en/docs/installation/deployment-methods/docker-installation" /> } title="1Panel Deployment" description="Quick deployment via 1Panel graphical interface." href="/en/docs/installation/deployment-methods/1panel-installation" /> } title="Baota Panel Deployment" description="Quick deployment via Baota Panel graphical interface." href="/en/docs/installation/deployment-methods/bt-docker-installation" /> } title="Cluster Deployment Mode" description="Multi-node distributed deployment for high availability and load balancing." href="/en/docs/installation/deployment-methods/cluster-deployment" /> } title="Local Development Deployment" description="Suitable for developers contributing code and customizing features." href="/en/docs/installation/deployment-methods/local-development" /> ## Configuration & Maintenance } title="docker-compose.yml Configuration" description="Detailed explanation of Docker Compose configuration file parameters." href="/en/docs/installation/config-maintenance/docker-compose-yml" /> } title="Environment Variables Configuration" description="Complete environment variables configuration guide and best practices." href="/en/docs/installation/config-maintenance/environment-variables" /> } title="System Update" description="Learn how to safely update New API to the latest version." href="/en/docs/installation/config-maintenance/system-update" /> # Compliance and Acceptable Use Policy import { Callout } from 'fumadocs-ui/components/callout'; Before using New API, please read and understand this policy carefully. ## Project Positioning New API is an AI API gateway and usage management system designed for legally authorized scenarios, primarily intended for self-use, internal team use, and enterprise private deployment. Its core capabilities include: * Unified authentication and multi-model routing within the enterprise * Usage statistics and access control within the organization * Cost allocation and enterprise client account management * Private deployment and development testing ## Legal Authorization Requirements When using New API, users must meet the following requirements: * Legally obtain authorization for upstream API Keys, model services, payment services, and other third-party services * Comply with upstream terms of service and platform rules * Comply with local laws, regulations, and supervisory requirements * Comply with applicable AI governance frameworks and content security requirements ## Usage Boundaries When using this project, ensure that relevant scenarios are legally authorized, compliant, auditable, and meet the following requirements: * Comply with upstream terms of service and platform rules * Comply with local laws, regulations, and supervisory requirements * Comply with content security, public safety, cybersecurity, and rights protection requirements * Comply with upstream content policies and applicable AI governance requirements ## Public Service Obligations If users provide generative AI services to the general public, they shall independently fulfill compliance obligations required by local laws and regulations, including but not limited to: * Filing and qualification requirements * Content security review and governance mechanisms * Identity management and log retention * Tax and payment compliance * Consumer protection * Upstream authorization and adherence to terms of service This project is primarily intended for self-use, internal team use, and enterprise private deployment scenarios. Compliance obligations related to providing services to external parties shall be borne by the deployer. ## Key and Channel Requirements * Upstream channels must be accounts, API Keys, model services, or enterprise contracts legally owned or authorized by the deployer * Features such as multi-key management, load balancing, and failover are only for high availability and enterprise multi-account management * When using the above capabilities, upstream terms of service, platform rules, and regulatory requirements must be observed ## Payment and Account Management Features such as payment, top-up, redemption codes, and invitations are only for internal settlement, enterprise client accounts, or compliant service fees in legally authorized scenarios. The deployer must ensure that related services, fees, promotions, and upstream authorizations comply with local laws and regulations, upstream terms of service, and platform rules. Compliance obligations such as taxation, invoicing, consumer protection, and payment risk control for the receiving entity shall be borne by the deployer. ## Content Security The deployer is obligated to ensure that services provided through this project comply with content security requirements. Features such as blacklisting, logging, and monitoring should serve content security, abuse governance, and compliance auditing. For public-facing services, mechanisms for abuse reporting, log auditing, and handling should be established. ## Community Governance Community discussions for this project should revolve around legal authorization, compliant deployment, and legitimate engineering issues. Issues, PRs, and discussions should comply with project compliance requirements and community rules, and maintainers will process non-compliant content according to these rules. ## Maintainer Stance New API is provided "as is" without warranties of any kind. Maintainers only provide technical discussions and community support for legally compliant use cases and may process issues, PRs, discussions, and tutorial links that do not meet project compliance requirements according to community rules. Developers and maintainers are not liable for any damages or legal issues arising from the use of this software. # Task Plugin API v1 Reference import { Callout } from 'fumadocs-ui/components/callout'; This repository marks API v1 as a contract that has not yet been officially released. New capabilities may still use `apiVersion: 1`, and older hosts may reject unrecognized fields. This page summarizes the contract; the complete signature and validation structure are subject to [v1.d.ts](https://github.com/QuantumNous/new-api-plugins/blob/main/docs/plugin-api/v1.d.ts), [v1.schema.json](https://github.com/QuantumNous/new-api-plugins/blob/main/docs/plugin-api/v1.schema.json) and the [original specification](https://github.com/QuantumNous/new-api-plugins/blob/main/docs/plugin-api/v1.md). ## Manifest: `meta` | Field | Type | Description | | ------------------------------- | --------------------------- | --------------------------------------------------------------------------------------------------------------- | | `apiVersion` | `1` | Contract version | | `key` | string | Plugin identifier, max 30 characters, consistent with marketplace directory name | | `name` | string | Display name | | `version` | string | Semantic version, consistent with version directory | | `author` | `{ name, url? }` | Author name is required, URL is HTTP(S) address; self-declared author information | | `models` | string\[] | Declares supported models | | `fetchMode` | `per_task` / `batch` | Single-task or batch polling | | `description` | LocalizedText | Plugin description | | `icon` | string | LobeHub icon name or `text` / `text: