{"id":28826514,"url":"https://github.com/karanb192/openwebui-o1o3-pro-plugin","last_synced_at":"2026-04-17T08:05:32.681Z","repository":{"id":298913392,"uuid":"1001530223","full_name":"karanb192/openwebui-o1o3-pro-plugin","owner":"karanb192","description":"Access OpenAI's most advanced reasoning models (o1-pro and o3-pro) with comprehensive token tracking and cost analytics in Open WebUI","archived":false,"fork":false,"pushed_at":"2025-06-13T14:47:01.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-13T15:46:28.200Z","etag":null,"topics":["chatgpt","chatgpt-api","llm","o3-pro","openai","openai-api","openwebui","openwebui-pipe","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/karanb192.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-13T14:37:35.000Z","updated_at":"2025-06-13T15:13:25.000Z","dependencies_parsed_at":"2025-06-13T15:46:29.681Z","dependency_job_id":"b8edee80-2733-434e-b844-1c0dbff98e52","html_url":"https://github.com/karanb192/openwebui-o1o3-pro-plugin","commit_stats":null,"previous_names":["karanb192/openwebui-o1o3-pro-plugin"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/karanb192/openwebui-o1o3-pro-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karanb192%2Fopenwebui-o1o3-pro-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karanb192%2Fopenwebui-o1o3-pro-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karanb192%2Fopenwebui-o1o3-pro-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karanb192%2Fopenwebui-o1o3-pro-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karanb192","download_url":"https://codeload.github.com/karanb192/openwebui-o1o3-pro-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karanb192%2Fopenwebui-o1o3-pro-plugin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260676937,"owners_count":23045115,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatgpt","chatgpt-api","llm","o3-pro","openai","openai-api","openwebui","openwebui-pipe","python"],"created_at":"2025-06-19T03:04:49.693Z","updated_at":"2026-04-17T08:05:27.655Z","avatar_url":"https://github.com/karanb192.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenAI o1-pro \u0026 o3-pro Integration for Open Web UI\n\nAccess OpenAI's most advanced reasoning models with comprehensive token usage tracking and cost analytics directly in Open Web UI.\n\n## 🌟 Features\n\n- **Premium Models**: Access to o1-pro and o3-pro reasoning models\n- **Cost Tracking**: Detailed per-message and cumulative conversation costs\n- **Token Analytics**: Track input, output, and reasoning tokens separately\n- **Multi-Key Support**: Round-robin load balancing across multiple API keys\n- **Smart Conversation Tracking**: Maintains cost history throughout conversations\n- **Configurable Parameters**: Adjust reasoning effort, output length, and more\n\n## 📋 Prerequisites\n\n- Open Web UI installation\n- OpenAI API key(s) with access to o1-pro and/or o3-pro models\n- Basic understanding of token-based pricing\n\n## 🚀 Quick Start\n\n1. Install the [function](https://www.openwebui.com/f/karanb192/o3pro_o1pro_support) in Open Web UI\n2. Add your OpenAI API key(s) in settings\n3. Select \"OpenAI: o1-pro\" or \"OpenAI: o3-pro\" from the model dropdown\n4. Start chatting with cost tracking enabled\n\n## ⚙️ Configuration\n\n| Setting | Description | Default |\n|---------|-------------|---------|\n| **API_KEYS** | OpenAI API key(s), comma-separated | *(required)* |\n| **THINKING_EFFORT** | Reasoning intensity: `low`, `medium`, `high` | `medium` |\n| **SHOW_TOKEN_STATS** | Display usage after responses | `True` |\n| **SHOW_CUMULATIVE_COST** | Show conversation totals | `True` |\n| **MAX_OUTPUT_TOKENS** | Maximum response length | `3200` |\n| **TIMEOUT_SECONDS** | Request timeout | `600` |\n\n## 💰 Model Pricing\n\n| Model | Input | Output | Best For |\n|-------|-------|--------|----------|\n| **o1-pro** | $150/M | $600/M | Complex logic, coding, math |\n| **o3-pro** | $20/M | $80/M | Cost effectiveness, general use |\n\n## 📊 Cost Tracking Example\n\n```\n📊 Token Usage (This Message):\n- Input: 1,234 tokens\n- Reasoning: 567 tokens\n- Output: 890 tokens\n- Total: 2,691 tokens\n- Cost for this message: $0.1234\n\n💰 Conversation Totals:\n- Messages: 3\n- Total Input: 3,456 tokens\n- Total Output: 2,345 tokens\n- Total Cost: $0.3456\n```\n\n## 🎯 Model Selection Guide\n\n**Choose o1-pro when you need:**\n- Advanced mathematical problem solving\n- Complex code generation or debugging\n- Multi-step logical reasoning\n- Maximum reasoning capability\n\n**Choose o3-pro when you need:**\n- Cost-effective advanced reasoning\n- General purpose queries\n- Analysis tasks\n\n## ⚡ Tips for Cost Optimization\n\n1. Use `low` thinking effort for simple queries\n2. Set appropriate `MAX_OUTPUT_TOKENS` limits\n3. Use o3-pro instead of o1-pro when possible\n4. Monitor cumulative costs during long conversations\n\n## 🔧 Troubleshooting\n\n**No API keys configured**\n- Add your OpenAI API key in function settings\n\n**High costs**\n- Lower `THINKING_EFFORT` setting\n- Reduce `MAX_OUTPUT_TOKENS`\n- Switch from o1-pro to o3-pro\n\n**Timeout errors**\n- Increase `TIMEOUT_SECONDS`\n- Simplify complex queries\n\n## 📝 Notes\n\n- Responses appear all at once (no streaming) to ensure accurate token counting\n- Conversation costs reset when starting a new chat\n- Pricing subject to change per OpenAI's policies\n\n## 🤝 Support\n\nFor issues or suggestions, please [reach out to me](mailto:karanb192@gmail.com).\n\n---\n\n**Version**: 1.0.0  \n**License**: MIT License  \n**Author**: Karan Bansal · [@karanb192](https://github.com/karanb192)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaranb192%2Fopenwebui-o1o3-pro-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaranb192%2Fopenwebui-o1o3-pro-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaranb192%2Fopenwebui-o1o3-pro-plugin/lists"}