Skip to content

maikershq/sdk

Repository files navigation

Maikers SDK

A TypeScript SDK for interacting with the Maikers API.

Features

  • Authentication with API key
  • AI agent creation and configuration
  • AI agent interaction (chat and actions)
  • Available as both a library and CLI tool

Usage as a Library

Authentication

import { MaikersSDK } from 'maikers-sdk';

// Initialize the SDK
const sdk = new MaikersSDK({});

// Authenticate with your API key
await sdk.auth('your-api-key');

// Check authentication status
if (sdk.isAuthenticated()) {
  console.log('Authenticated!');
}

// You can also initialize with an API key directly
const sdk = new MaikersSDK({ apiKey: 'your-api-key' });

Using as library

import { MaikersSDK } from 'maikers-sdk';

// Initialize the SDK with your API key
const sdk = new MaikersSDK({ apiKey: 'your-api-key' });

Usage as a CLI

Install dependencies

pnpm i

Build the CLI

pnpm build

Usage

Authenticate with your API key

node dist/cli.js auth login your-api-key

Check authentication status

node dist/cli.js auth status

Log out (clear authentication)

node dist/cli.js auth logout

Create an agent

node dist/cli.js agent create --id <agent-id> --name "Agent Name" --description "Agent Description" --risk-level low --job-types job-type1,job-type2 --skills skill1,skill2 --persona-id <persona-id>

Update agent settings

node dist/cli.js agent update-settings <agent-id> --persona- "helpful assistant" --risks low,medium

Query an agent

node dist/cli.js agent query <agent-id> --message "Hello, how can you help me today?"

Get help

node dist/cli.js --help

Environment Variables

You can configure the SDK using environment variables:

MAIKERS_API_KEY=your-api-key
MAIKERS_BASE_URL=api-base-url

About

Lightweight, type-safe SDK for building custom AI-powered workflows and Web3 automations on the Maikers AIP platform.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors