Skip to main content

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_KEY from 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

  1. Sign up at app.daemo.ai
  2. Create a new Agent
  3. 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

  1. Go to app.daemo.ai
  2. Select your Agent
  3. 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:

  1. Install the SDK — Add Daemo to your project
  2. Register Functions — Expose backend methods using attributes
  3. Connect to the Engine — Establish a secure tunnel
  4. Test Your Agent — Send queries through the Playground

Supported Versions

FrameworkSupported
.NET 6.0+
.NET Framework 4.x✅ (via Reverse Gateway)

Next Steps