COMING SOON: .NET / C#
Build your first Daemo agent in under 5 minutes.
Prerequisites
- .NET 6.0 or higher
- An account at app.daemo.ai
- A
DAEMO_API_KEYfrom your dashboard
Installation
dotnet add package Daemo.SDK
Tip
SDK Version: Latest is 0.2.3. Check NuGet for updates.
1. Get Your API Key
- Sign up at app.daemo.ai
- Create a new Agent
- Copy your
DAEMO_API_KEY
2. Define Your Tools
Create CalculatorService.cs:
using Daemo.Sdk;
public class CalculatorService
{
[DaemoFunction("Computes A to the power of B.")]
public async Task<PowerResult> Power(
[DaemoParameter("The base")] double a,
[DaemoParameter("The exponent")] double b)
{
return new PowerResult { Result = Math.Pow(a, b) };
}
}
public class PowerResult { public double Result { get; set; } }
3. Register and Run
In Program.cs:
using Daemo.Sdk;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddDaemo(daemo =>
{
daemo.WithApiKey(Environment.GetEnvironmentVariable("DAEMO_API_KEY")!)
.WithServiceName("CalculatorService")
.RegisterFunction<CalculatorService>();
});
var app = builder.Build();
app.MapDaemo();
Console.WriteLine("🚀 Agent online!");
app.Run();
4. Run It
export DAEMO_API_KEY="your-api-key"
dotnet run
5. Test in the Playground
- Go to app.daemo.ai
- Select your Agent
- Ask: "What is 2 to the power of 10?"
Note
LLM Keys Optional: Daemo provides a default LLM. You don't need your own OpenAI/Gemini keys. Bring your own if you prefer.
What You'll Learn
By completing this quickstart, you've learned how to:
- Install the SDK — Add Daemo to your project
- Register Functions — Expose backend methods using attributes
- Connect to the Engine — Establish a secure tunnel
- Test Your Agent — Send queries through the Playground
Supported Versions
| Framework | Supported |
|---|---|
| .NET 6.0+ | ✅ |
| .NET Framework 4.x | ✅ (via Reverse Gateway) |
Next Steps
- Core Concepts — How Daemo works
- API Reference — Full SDK docs