GitHub Copilot SDK Pipe for OpenWebUI¶
Author: Fu-Jie | Version: 0.6.2 | Project: OpenWebUI Extensions | License: MIT
This is an advanced Pipe function for OpenWebUI that integrates the official GitHub Copilot SDK. It enables you to use GitHub Copilot models (e.g., gpt-5.2-codex, claude-sonnet-4.5,gemini-3-pro, gpt-5-mini) AND your own models via BYOK (OpenAI, Anthropic) directly within OpenWebUI, providing a unified agentic experience with strict User & Chat-level Workspace Isolation.
[!IMPORTANT] Essential Companion To unlock file handling and data analysis capabilities, you must install the GitHub Copilot SDK Files Filter.
[!TIP] No Subscription Required for BYOK If you are using your own API keys (BYOK mode with OpenAI/Anthropic), you do NOT need a GitHub Copilot subscription. A subscription is only required to access GitHub's official models.
✨ v0.6.2 Updates (What's New)¶
- 🛠️ New Workspace Artifacts Tool: Introduced
publish_file_from_workspace. Agents can now generate files (e.g., Python-generated Excel/CSV) and provide direct download links for the user to click and save. - ⚙️ Workflow Optimization: Improved reliability of the internal agentic workspace management.
- 🛡️ Enhanced Security: Refined access control for system resources within the isolated environment.
- 🔧 Performance Tuning: Optimized stream processing for larger context windows.
✨ Key Capabilities¶
- 🔑 Flexible Auth & BYOK: Official Copilot subscriptions (PAT) or Bring Your Own Key (OpenAI/Anthropic).
- 🔌 Universal Tool Protocol: Native support for MCP (Model Context Protocol), OpenAPI, and OpenWebUI built-in tools.
- 🛡️ Sandbox Workspace Isolation: Strict per-session sandboxing for data privacy and security.
- ♾️ Infinite Session Management: Smart context window management with automatic compaction for indefinite conversation capability.
- 🧠 Deep Database Integration: Real-time persistence of TOD·O lists for long-running workflows.
- 🌊 Advanced Streaming: Full support for thinking process/Chain of Thought visualization.
- 🖼️ Intelligent Multimodal: Vision capabilities and raw file analysis support.
- ⚡ Full-Lifecycle File Agent: Supports receiving uploaded files for raw bypass analysis and publishing results (Excel/reports) as downloadable links.
- 🖼️ Interactive Artifacts: Automatically renders HTML/JS apps generated by the agent directly in the chat interface.
⚙️ Core Configuration (Valves)¶
1. Administrator Settings (Base)¶
Administrators define the default behavior for all users in the function settings.
| Valve | Default | Description |
|---|---|---|
GH_TOKEN | "" | Global GitHub Token (Requires 'Copilot Requests' permission). |
ENABLE_OPENWEBUI_TOOLS | True | Enable OpenWebUI Tools (includes defined Tools and Built-in Tools). |
ENABLE_OPENAPI_SERVER | True | Enable OpenAPI Tool Server connection. |
ENABLE_MCP_SERVER | True | Enable Direct MCP Client connection (Recommended). |
REASONING_EFFORT | medium | Reasoning effort level: low, medium, high. |
SHOW_THINKING | True | Show model reasoning/thinking process. |
INFINITE_SESSION | True | Enable Infinite Sessions (automatic context compaction). |
MAX_MULTIPLIER | 1.0 | Max allowed billing multiplier (0x for free models only). |
EXCLUDE_KEYWORDS | "" | Exclude models containing these keywords (comma separated). |
TIMEOUT | 300 | Timeout for each stream chunk (seconds). |
BYOK_TYPE | openai | BYOK Provider Type: openai, anthropic. |
BYOK_BASE_URL | "" | BYOK Base URL (e.g., https://api.openai.com/v1). |
BYOK_MODELS | "" | BYOK Model List (comma separated). Leave empty to fetch from API. |
CUSTOM_ENV_VARS | "" | Custom environment variables (JSON format). |
DEBUG | False | Enable this to see detailed logs in your browser console. |
2. User Settings (Individual Overrides)¶
Standard users can override these settings in their individual Profile/Function settings.
| Valve | Description |
|---|---|
GH_TOKEN | Use your personal GitHub Token. |
REASONING_EFFORT | Individual reasoning effort preference. |
SHOW_THINKING | Show model reasoning/thinking process. |
MAX_MULTIPLIER | Maximum allowed billing multiplier override. |
EXCLUDE_KEYWORDS | Exclude models containing these keywords. |
BYOK_API_KEY | Use your personal OpenAI/Anthropic API Key. |
🎯 Use Cases (What can you do?)¶
- 📁 Fully Autonomous DevOps: Agent analyzes code, runs tests, and applies patches within its isolated sandbox.
- 📊 Deep Data Auditing: Directly process raw Excel/CSV data via Python (bypassing RAG) and generate visual reports.
- 📝 Long-Task Management: Automatically decomposes complex requests and persists TOD·O progress across sessions.
⭐ Support¶
If this plugin has been useful, a Star on OpenWebUI Extensions would be a great motivation for me. Thank you!
🚀 Installation & Configuration¶
1) Import Function¶
- Open OpenWebUI, go to Workspace -> Functions.
- Click + (Create Function), paste the content of
github_copilot_sdk.py. - Save and ensure it is enabled.
2) Get Token¶
- Visit GitHub Token Settings.
- Create Fine-grained token, granting Account permissions -> Copilot Requests access.
- Paste the generated Token into the
GH_TOKENfield in Valves.
📋 Troubleshooting & Dependencies¶
- Agent ignores files?: Ensure the Files Filter is enabled, otherwise RAG will interfere with raw binaries.
- No progress bar?: The bar only appears when the Agent uses the
update_todotool. - Dependencies: This Pipe automatically installs
github-copilot-sdk(Python) andgithub-copilot-cli(Binary).
Changelog¶
See the full history on GitHub: OpenWebUI Extensions