Developers/SDKs & Libraries

SDKs & Libraries

Official client libraries maintained by the FlockSoft engineering team. Install once, integrate in minutes, and rely on typed interfaces and automatic retries in production.

TypeScript

stablev1.2.0
@flocksoft/sdk
npmnpm install @flocksoft/sdk

Fully typed TypeScript SDK with first-class support for async/await, streaming responses, and automatic retries. Works in Node.js and edge runtimes.

Features
  • Full TypeScript type definitions
  • Async/await and streaming support
  • Automatic retry with exponential backoff
  • Edge runtime compatible
  • Zero external dependencies
Example
import { FlockSoft } from '@flocksoft/sdk'

const client = new FlockSoft({
  apiKey: process.env.FLOCKSOFT_API_KEY,
})

const agent = await client.agents.run('agent_abc123', {
  input: { task: 'Analyze Q4 data' },
})

console.log(agent.status) // 'running'

Python

stablev1.1.3
flocksoft
pippip install flocksoft

Idiomatic Python client with synchronous and async support, Pydantic models for type safety, and native integration with popular frameworks like FastAPI and Django.

Features
  • Sync and async (asyncio) support
  • Pydantic models for type safety
  • Automatic pagination helpers
  • Context manager support
  • Django and FastAPI integrations
Example
from flocksoft import FlockSoft

client = FlockSoft(api_key="fs_live_...")

agent = client.agents.run(
    agent_id="agent_abc123",
    input={"task": "Analyze Q4 data"},
)

print(agent.status)  # running

Go

betav0.9.1
github.com/flocksoft/flocksoft-go
go getgo get github.com/flocksoft/flocksoft-go

Lightweight Go client with full context support, idiomatic error handling, and no external dependencies beyond the standard library.

Features
  • Context-aware HTTP client
  • Idiomatic Go error handling
  • No external dependencies
  • Goroutine-safe
  • Full pagination support
Example
client := flocksoft.NewClient(os.Getenv("FLOCKSOFT_API_KEY"))

agent, err := client.Agents.Run(ctx,
    "agent_abc123",
    &flocksoft.RunParams{
        Input: map[string]any{
            "task": "Analyze Q4 data",
        },
    },
)
if err != nil {
    log.Fatal(err)
}
fmt.Println(agent.Status) // running
Open Source

Built in the open.
Maintained by us.

All FlockSoft SDKs are open source on GitHub. We welcome bug reports, feature requests, and pull requests from the community.

GitHub Stars1.2k
Open Issues14
Contributors23
npm Downloads / week18k