Open Source AI Agents

developer2026-11-19

On this page

Open source AI agents are agent frameworks whose code you can read, run, and modify, and they reach external APIs through tool interfaces. The Model Context Protocol (MCP) is the common standard for those tool connections, so an MCP gateway lets an open source agent call many APIs through one endpoint. Pick the framework for control of the agent loop, then pick the tool layer for breadth of APIs.

What makes an AI agent open source

An open source AI agent publishes its source code under a license that lets you inspect, run, and change it. The agent loop, the prompt handling, and the tool-calling logic all live in files you can read. A closed agent hides that logic behind a hosted product.

Open source does not mean free to run. The agent still calls a large language model (LLM), and that model bills per token or runs on your own hardware. The framework cost is zero, but the model and the tools cost money or compute.

How open source agents call APIs

An agent reaches an external API through a tool. The tool wraps one HTTP request, sends JSON parameters, and returns a JSON response that the model reads.

MCP standardises that wrapper. An MCP server exposes a list of tools with typed inputs, and any MCP-aware client calls them the same way. The agent does not need custom glue code for each API.

  • The client discovers the tool list from the server.
  • The model picks a tool and fills its JSON arguments.
  • The server runs the HTTP call and returns the result.

Choose a framework and a tool layer

Choose the framework for how the agent plans and loops. Choose the tool layer for which APIs the agent can reach. The two choices are independent. You can swap one without rebuilding the other.

Frameworks differ in language, state handling, and multi-agent support. Tool layers differ in how many APIs they expose, how they handle authentication, and how they bill calls. A gateway with a large and growing catalog saves you from writing one connector per API.

Pricing and payment for agent tool calls

Each tool call costs money when the upstream API charges for it. The agent pays per call, not per seat. Track the cost per task, because a loop that retries a paid tool multiplies the bill.

APIbase tool calls are priced per call. Individual tools range from 0 to 29.99 per call. Check the current price on each tool page before you set a budget.

Security and control for open source agents

An open source agent runs code you control, so you own the secrets. Store API keys in environment variables or a secrets manager, never in prompts or in the repository.

  • Give each agent a scoped key with only the tools it needs.
  • Cap spend per run and log every tool call.
  • Review the tool descriptions, because the model chooses tools from them.

Getting started with an open source agent

Start with one framework, one model, and two or three tools. Run a single task end to end before you add more tools.

Connect the agent to an MCP gateway with one endpoint. Then add tools as the task requires. Keep the agent loop small until the first task completes reliably.

Live pricing — developer

Price per call, developer tools Horizontal bar chart of the price per call and the cache-hit price, in US dollars, for 12 developer tools. The same values are in the table below the chart. Price per call Cache-hit price $0.0 $0.0005 $0.001 Usage Time SeriesUsage Time Series $0.0 $0.0 Per-Tool Usage BreakdownPer-Tool Usage Breakdown $0.0 $0.0 Usage SummaryUsage Summary $0.0 $0.0 Discover ToolsDiscover Tools $0.0 $0.0 Batch Tool CallsBatch Tool Calls $0.0 $0.0 Tool Quality MetricsTool Quality Metrics $0.0 $0.0 Tool Quality RankingsTool Quality Rankings $0.0 $0.0 List Programming LanguagesList Programming Languages $0.001 $0.0001 Check CVE ID Reservation Stat…Check CVE ID Reservation Status $0.001 $0.0001 Security Advisories (deps.dev)Security Advisories (deps.dev) $0.001 $0.0001 Dependency Tree (deps.dev)Dependency Tree (deps.dev) $0.001 $0.0001 Package Info (deps.dev)Package Info (deps.dev) $0.001 $0.0001 US dollars per call
Price per call for developer tools, cheapest first.

Data source: live tool catalog snapshot, fetched 2026-11-19.

Chart data as a table
ToolPrice per callCache-hit price
Usage Time Series$0.0$0.0
Per-Tool Usage Breakdown$0.0$0.0
Usage Summary$0.0$0.0
Discover Tools$0.0$0.0
Batch Tool Calls$0.0$0.0
Tool Quality Metrics$0.0$0.0
Tool Quality Rankings$0.0$0.0
List Programming Languages$0.001$0.0001
Check CVE ID Reservation Status$0.001$0.0001
Security Advisories (deps.dev)$0.001$0.0001
Dependency Tree (deps.dev)$0.001$0.0001
Package Info (deps.dev)$0.001$0.0001
ToolProviderPrice/callCache-hit
Usage Time Seriesaccount$0$0
Per-Tool Usage Breakdownaccount$0$0
Usage Summaryaccount$0$0
Discover Toolsapibase$0$0
Batch Tool Callsplatform$0$0
Tool Quality Metricsplatform$0$0
Tool Quality Rankingsplatform$0$0
List Programming Languagesjudge0$0.001$0.0001
Check CVE ID Reservation Statuscve-mitre$0.001$0.0001
Security Advisories (deps.dev)depsdev$0.001$0.0001
Dependency Tree (deps.dev)depsdev$0.001$0.0001
Package Info (deps.dev)depsdev$0.001$0.0001

Connect via MCP

How a tool call worksAn AI agent sends a tool call to the APIbase gateway. The gateway checks payment, calls the provider API, and returns the JSON result to the agent.Your agentAPIbase gatewayProvider API1. tool call2. paid call3. JSON result flows back to the agent
Diagram: the path of one tool call.

Data source: gateway design, no measured values.

$ curl -X POST https://apibase.pro/api/v1/tools/account.timeseries/call \
  -H "Content-Type: application/json" -d '{"params": {}}'

FAQ

Are open source AI agents free to use?

The framework code costs nothing to use. The language model and the paid API tools still bill per use. Budget for model tokens and tool calls separately.

What is MCP in an open source agent?

MCP is the Model Context Protocol. It defines how an agent discovers and calls tools on an MCP server, so one client can use many APIs without custom connectors.

Can an open source agent call paid APIs?

Yes. The agent sends the request with the key you provide. The upstream provider charges for each call, so set spend limits before you run loops.

How do I pick an open source agent framework?

Pick by language, state handling, and multi-agent needs. Test two frameworks on the same task. Keep the one that completes it with fewer retries.

  1. STEP 1/2 Connect your MCP client
  2. STEP 2/2 Browse the full catalog

Written with AI assistance from APIbase's published documentation and public data; checked automatically against them. Corrections: https://apibase.pro/

Published: 2026-11-19Source: live apibase.pro catalog snapshot