Skip to main content

SDK Quickstart

Get your first AI agent running in 5 minutes.

Prerequisites

  • Sekuire CLI installed
  • LLM API key (OpenAI, Anthropic, etc.)

Optional (platform mode only):


Step 1: Create a Project

Use the CLI to scaffold a new agent:

Terminal
sekuire init --name my-agent --language python
cd my-agent

This creates a sekuire.yml config file and project structure.


Step 2: Configure Your Agent

Edit sekuire.yml to set your LLM provider:

sekuire.yml
project:
name: "my-agent"
version: "1.0.0"

agents:
assistant:
name: "AI Assistant"
system_prompt: "./prompts/assistant.md"
llm:
provider: "openai"
model: "gpt-4-turbo"
api_key_env: "OPENAI_API_KEY"
temperature: 0.7
memory:
type: "buffer"
max_messages: 10

Set your API key in the environment:

export OPENAI_API_KEY="sk-..."
# or add to .env file

Step 3: Install the SDK

npm install @sekuire/sdk

Step 4: Use the Agent

import { getAgent } from '@sekuire/sdk';

async function main() {
// Load agent from sekuire.yml
const agent = await getAgent('assistant');

// Chat with the agent
const response = await agent.chat('What is the capital of France?');
console.log(response);

// Continue the conversation
const followUp = await agent.chat('What is its population?');
console.log(followUp);

// Get conversation history
const history = agent.getHistory();
console.log(`Messages: ${history.length}`);
}

main();

Step 5: Run It

npx tsx main.ts
# or
node --loader ts-node/esm main.ts
tip

This quickstart runs in standalone mode by default. Add platform credentials later for managed features.


Next Steps