Repository navigation
v0.1.3 — Initial Release
NOpenCode is a .NET SDK that brings OpenCode's AI engine into your application services. Express your intent in natural language — NOpenCode bridges your application logic with AI.
Features
- Zero setup — auto-discovers or starts \opencode serve\ for you
- Natural language API — plain-English interface for AI interactions
- Multi-turn sessions — context-aware follow-up conversations
- Streaming — receive AI responses chunk by chunk in real time
- File & code search — ripgrep, filename lookup, symbol search
- Session lifecycle — create, fork, share, diff, revert, summarize
- Provider & model discovery — query available models, providers, agents
- MCP server management — dynamically add and list MCP servers
- Event monitoring — subscribe to SSE event streams
- DI integration — \AddNOpenCode()\ for ASP.NET Core / console hosts
- .NET Standard 2.0 — compatible with .NET Framework 4.6.1+ and all modern .NET
Getting Started
dotnet add package NOpenCodeusing NOpenCode;
string answer = await OpenCode.Ask("What's the capital of France?");
Console.WriteLine(answer);What's Changed in v0.1.3
✨ New
- Initial NuGet publish (v0.1.0 → v0.1.3)
- Full SDK with all clients and models
- 10 example projects demonstrating every API feature
- Examples CI workflow — builds and runs all examples on every commit
📦 Packaging
- NuGet package includes README.md (no more missing readme warning)
- Added NuGet search tags for SEO: opencode, ai, sdk, llm, chat, copilot, assistant, dotnet, csharp
🐛 Bug Fixes
- Token usage display — tokens now correctly read from \info.tokens\ in API response
- Find API — handles new response format where \path, \lines, and \match\ are objects with \ ext\ field
- MCP API — uses new \ ype\ + \command\ array format
- Model API — \Provider.Models\ is a dictionary ({ [key: string]: Model }), not a list
📝 Documentation
- Added Chinese README (README.zh.md) with cross-language links
- Emoji badges on all section headers for visual clarity
- Added CI, Examples, and NuGet version badges to README
- Simplified and repositioned SDK description
- All examples updated to use lightweight prompts for fast execution