How to connect Apollo to OpenCode in 2 mins: No API key needed

You can enrich a CSV of company domains, find a contact with a work email at each account and check which accounts are hiring for a role from OpenCode. Composio runs each call on its own Apollo account, so you don't need a Apollo API key, and your first $2 is free.

ApolloInstant · No API key

OpenCode runs Apollo through Composio, and the cost comes out of your free $2.

  • A work email and profile for a person$0.020
  • A company profile from its domain$0.020
  • A page of companies that match your filters$0.020

$2 ≈ 100 persons or 100 companies

Composio Instant

What you can do with your free $2

What your free $2 gets you with Apollo
When you ask OpenCode forOpenCode uses this toolCostWhat $2 gets you
A work email and profile for a personEnrich person with Apollo$0.020 per personAbout 100 persons
A company profile from its domainEnrich organization data$0.020 per companyAbout 100 companies
A page of companies that match your filtersSearch organizations in Apollo$0.020 per searchAbout 100 searches
Open job posts at a companyGet Organization Job Postings$0.020 per pageAbout 100 pages
News articles about a companySearch news articles$0.020 per pageAbout 100 pages

You pay Apollo's price for each call with 0% markup, plus the regular Composio tool call charge. There's no Apollo subscription, and you only pay for what you use.

9 of 72 Apollo tools work without a key. For Activate Sequence, Add Contacts to Sequence, Add People to Prospects, Archive Sequence, Bulk update account stage, Complete Apollo Task and 57 more, connect your own Apollo key. Read how Instant works.

How it works

How to connect Apollo to OpenCode

Composio adds Apollo to OpenCode as an Instant toolkit. You connect Composio to OpenCode once, and then OpenCode can use Apollo right away. There are two ways to do this:

  • Bring your own key

    You bring your own Apollo API key, set it up, and use it.

  • Use the Composio wallet

    Instant

    Composio runs each call on its own Apollo account, so you don't have to set anything up at Apollo, and your first $2 is free.

You do the setup one time and it takes about a minute. If you build Apollo into your own product, turn on Instant toolkits in your project settings so your agent can call Apollo for each of your users without a Apollo API key, and read Instant tools in the Composio docs for the setup steps and code examples.

Get started

Start to use Apollo in OpenCode in 3 steps

  1. Turn on Instant

    Open your Composio wallet and turn on Instant. Your free $2 shows up there.

  2. Add Composio to OpenCode

    Follow the setup below. You only do this once.

  3. Ask OpenCode for something

    Try a Apollo prompt. The cost comes out of your $2.

Setup

Connect Apollo with OpenCode

Option 1: Using Composio CLI

1. Install Composio CLI

Install the Composio CLI, authenticate, and initialize your project:

bash
# Install the Composio CLI
curl -fsSL https://composio.dev/install | bash

# Authenticate with Composio
composio login

During login, you will be redirected to the sign-in page. Finish the flow and you are all set.

Composio CLI authorization screen

2. Authorize Apollo

Once the CLI is installed, it is essentially done. Give OpenCode access to your apps with these steps:

  1. Launch OpenCode.
  2. Prompt it to "Authenticate with Apollo Composio".
  3. Complete the authentication and authorization flow, and your Apollo integration is all set.
  4. Start asking anything you want.

Option 2: Using Composio MCP

You can also connect Apollo to OpenCode by adding Composio as an MCP server through the OpenCode CLI.

1. Add the Composio MCP server

bash
opencode mcp add

This launches an interactive prompt.

2. Fill in the fields

FieldValue
Namecomposio
Typeremote
URLhttps://connect.composio.dev/mcp
Require OAuthYes
Have client IDNo
OpenCode MCP server interactive prompt for Composio

Alternatively, you can skip the interactive prompt and paste the configuration directly into your OpenCode config file.

Open your global OpenCode config:

bash
open ~/.config/opencode/opencode.json

Add this under the mcp key and save the file.

bash
{
  "mcp": {
    "composio": {
      "type": "remote",
      "url": "https://connect.composio.dev/mcp",
      "enabled": true
    }
  }
}

3. Authenticate

Authenticate the Composio MCP server you just added:

bash
opencode mcp auth composio

This opens a browser session. Authorize Composio and you are done.

Composio browser authorization for OpenCode MCP

4. Verify installation

bash
opencode mcp list

5. Connect Apollo with OpenCode

Now, in the chat, ask the agent to connect to Apollo or give it any Apollo-related task.

For example, ask it to:

  • "Bulk enrich profiles for new leads"
  • "Add contacts to outreach sequence now"
  • "Create a new sales deal for Acme"

It will prompt you to authenticate and authorize access to Apollo.

That is it. Composio tools are now available in OpenCode, and your Apollo account is ready to use.

Try it

Ask OpenCode for something with Apollo

Start a new chat and try this prompt:

accounts.csv has a domain column (up to 20 rows). Enrich the domains with Apollo in batches of 10 and write accounts-enriched.csv with industry, employee count, headquarters, founding year and annual revenue added. List the domains Apollo couldn't match.

OpenCode runs it on Instant and shows you the result. It doesn't ask you for a Apollo key, and the cost comes out of your $2. You can see each call in your wallet.

Optional: connect your own Apollo key

If you want Activate Sequence, Add Contacts to Sequence, Add People to Prospects, Archive Sequence, Bulk update account stage, Complete Apollo Task and 57 more, you need your own key. Ask OpenCode to connect your Apollo account, and it gives you a Composio link:

Connect my Apollo account using Composio.

Open the link, paste your Apollo API key and click Connect Account. You can get a key from Apollo API keys page. After that, Composio uses your key first and doesn't charge Instant for those calls.

Starter prompts

Use your first $2: copy a prompt into OpenCode

Each prompt runs on Instant, and the cost next to it is about what it takes from your $2.

  • Enrich a CSV of company domains

    About $0.40

    Reads company domains from a CSV and writes a new file with industry, headcount, location and revenue added.

    accounts.csv has a domain column (up to 20 rows). Enrich the domains with Apollo in batches of 10 and write accounts-enriched.csv with industry, employee count, headquarters, founding year and annual revenue added. List the domains Apollo couldn't match.

  • Find a contact with a work email at each account

    About $0.10

    Finds the most senior person in a role at each company in a file and gets their work email.

    For each domain in accounts.txt (up to 5), find the most senior [job title or department] person on Apollo, then get their work email. Write contacts.csv with company, name, title and email, and note any account where you found no one.

  • Check which accounts are hiring for a role

    About $0.22

    Pulls open job postings for each company in a file and shows which ones are hiring for the role you sell to.

    For each domain in accounts.txt (up to 10), get the company's open job postings from Apollo. Write hiring.csv with company, number of open roles, and the titles that mention [keyword, like data engineer]. Sort by the number of matching roles.

  • Export prospects for each job title to a CSV

    Free

    Runs a free people search for every job title in a file and writes one list without duplicates.

    For each job title in titles.txt (up to 5), find 25 people in [location] at companies with [min] to [max] employees on Apollo. Write prospects.csv with the title searched, the person's title, company and location, and remove duplicates.

What it can do

What OpenCode can do with Apollo

Works without a key

  • A work email and profile for a person
  • A company profile from its domain
  • A page of companies that match your filters
  • Open job posts at a company
  • News articles about a company

Needs your own Apollo key

  • Activate Sequence
  • Add Contacts to Sequence
  • Add People to Prospects
  • Archive Sequence
  • Bulk update account stage
  • Complete Apollo Task
  • Create an Apollo account
  • Bulk create Apollo accounts
  • and 55 more
Tools and prices

Supported tools (72)

Apollo tools and their Instant prices
ToolWhat it doesWorks without a keyCost on Instant
Bulk organization enrichmentEnriches data for up to 10 organizations simultaneously by providing a list of their base company domains (e.g., 'apollo.io', not 'www.apollo.io').YesEstimated $0.02 per organization enriched in the batch
Bulk people enrichmentEnriches up to 10 person profiles from Apollo's database; charges may apply per person enriched, and unmatched entries may be null.Yes$0.02–$0.18 per person enriched
Get Organization by IDRetrieves organization information by Apollo ID, including available funding, technology, and employee data.YesEstimated $0.02 per organization retrieved
Get Organization Job PostingsRetrieves paginated job postings for a specified organization by its ID, optionally filtering by domain; ensure `organization_id` is a valid identifier.YesEstimated $0.02 per job-posting result page
Enrich organization dataFetches comprehensive organization enrichment data from Apollo.io for a given company domain; results are most meaningful if the company exists in Apollo's database.YesEstimated $0.02 per organization enriched
Search organizations in ApolloSearch Apollo's organization database using filters and paginated results.YesEstimated $0.02 per organization search page
Enrich person with ApolloEnriches a person using an Apollo ID, email, hashed email, LinkedIn URL, or first and last name with organization name or domain.Yes$0.02–$0.18 per person enriched
Apollo people searchSearches Apollo's database for net-new prospects using filters, returning preview records with a display limit of 50,000.Yes$0 per request
Search news articlesTool to search for news articles about companies in Apollo's database.YesEstimated $0.02 per news-result page
Activate SequenceActivate an inactive Apollo sequence and begin its scheduled outreach.Needs your own keyBilled to your own Apollo key
Add Contacts to SequenceAdds contacts to a specified Apollo email sequence and returns the contact details.Needs your own keyBilled to your own Apollo key
Add People to ProspectsSave Apollo person IDs returned by APOLLO_PEOPLE_SEARCH as persistent prospect contacts.Needs your own keyBilled to your own Apollo key
Archive SequenceArchive an Apollo sequence, making it inactive and finishing all enrolled contacts.Needs your own keyBilled to your own Apollo key
Bulk update account stageBulk updates the stage for specified existing Apollo.io accounts, moving them to a valid new account stage.Needs your own keyBilled to your own Apollo key
Complete Apollo TaskRequests completion of an Apollo task and returns the resulting task state.Needs your own keyBilled to your own Apollo key
Create an Apollo accountCreates a new account in Apollo.io; a new record is created even if a similar account exists, and provided `owner_id` or `account_stage_id` must be valid existing IDs.Needs your own keyBilled to your own Apollo key
Bulk create Apollo accountsCreates multiple accounts in Apollo.io with a single API call (maximum 100 accounts per request).Needs your own keyBilled to your own Apollo key
Bulk create Apollo contactsTool to bulk create multiple contacts in Apollo with a single API call.Needs your own keyBilled to your own Apollo key
Create call record in ApolloTool to log call records in Apollo from external systems.Needs your own keyBilled to your own Apollo key
Create Apollo contactCreates a new contact in Apollo.io; use `account_id` to link to an organization and `contact_stage_id` for sales stage.Needs your own keyBilled to your own Apollo key
Show all 72 tools
More Apollo tools and their Instant prices
ToolWhat it doesWorks without a keyCost on Instant
Create custom fieldCreates a new custom field in Apollo.io for contacts, accounts, or opportunities.Needs your own keyBilled to your own Apollo key
Create Apollo dealCreates a new sales opportunity (deal) in Apollo.io; all provided IDs (`owner_id`, `account_id`, `opportunity_stage_id`) must be valid existing Apollo identifiers.Needs your own keyBilled to your own Apollo key
Create Email DraftCreate an unsent Apollo outreach draft, or return the existing draft already linked to outreach_task_id.Needs your own keyBilled to your own Apollo key
Create Apollo SequenceCreate an Apollo outreach sequence, optionally including steps and email variants.Needs your own keyBilled to your own Apollo key
Create Apollo Sequence StepCreate one step at a specified position in an existing Apollo outreach sequence.Needs your own keyBilled to your own Apollo key
Create Apollo TaskTool to create a single task in Apollo.io.Needs your own keyBilled to your own Apollo key
Deactivate SequenceDeactivate an active Apollo sequence.Needs your own keyBilled to your own Apollo key
Export ConversationsStart an asynchronous gzipped JSON conversation export and email a team member when it is ready.Needs your own keyBilled to your own Apollo key
Get Account by IDTool to retrieve detailed information about a specific account by its Apollo ID.Needs your own keyBilled to your own Apollo key
Check Apollo API key statusTool to check whether the provided Apollo API key is valid and accepted by Apollo (health/auth check).Needs your own keyBilled to your own Apollo key
Get Apollo ContactRetrieves detailed information about a specific contact by its ID.Needs your own keyBilled to your own Apollo key
Get ConversationRetrieve full Apollo conversation details, including transcript, participants, recordings, and opportunities.Needs your own keyBilled to your own Apollo key
Get Conversation ExportRetrieve the download redirect URL for a previously started Apollo conversation export.Needs your own keyBilled to your own Apollo key
Get Current User ProfileReturn the authenticated Apollo user's identity and optional credit balances.Needs your own keyBilled to your own Apollo key
Get Apollo dealRetrieves information about a specific deal by its ID.Needs your own keyBilled to your own Apollo key
Get Email ActivitiesRetrieves content, open and click activity, and recipient details for one Apollo sequence email.Needs your own keyBilled to your own Apollo key
Get Email ContentRetrieve content for up to 10 sent team outreach emails.Needs your own keyBilled to your own Apollo key
Get LabelsRetrieves all labels from Apollo.io, used for organizing contacts and accounts.Needs your own keyBilled to your own Apollo key
Get opportunity stagesRetrieves all configured opportunity (deal) stages from the Apollo.io account.Needs your own keyBilled to your own Apollo key
Get Apollo TaskRetrieves the full details of one Apollo task by ID, including associated records and type-specific data when present.Needs your own keyBilled to your own Apollo key
Get typed custom fieldsRetrieves all typed custom field definitions available in the Apollo.io instance, detailing their types and configurations.Needs your own keyBilled to your own Apollo key
Get Apollo UserRetrieve one teammate in the connected Apollo workspace by Apollo user ID.Needs your own keyBilled to your own Apollo key
List Apollo account stagesRetrieves the IDs for all available account stages in your team's Apollo account.Needs your own keyBilled to your own Apollo key
List apollo contact stagesRetrieves all available contact stages from an Apollo account, including their unique IDs and names.Needs your own keyBilled to your own Apollo key
List Apollo dealsRetrieves a list of deals from Apollo, using Apollo's default sort order if 'sort_by_field' is omitted.Needs your own keyBilled to your own Apollo key
List email accountsRetrieves all email accounts and their details for the authenticated user; takes no parameters.Needs your own keyBilled to your own Apollo key
List FieldsRetrieves all field definitions from Apollo.io, including system fields and custom fields.Needs your own keyBilled to your own Apollo key
List Apollo NotesList notes associated with Apollo records.Needs your own keyBilled to your own Apollo key
List Apollo UsersRetrieves a list of all users (teammates) associated with the Apollo account, supporting pagination via `page` and `per_page` parameters.Needs your own keyBilled to your own Apollo key
Query Analytics ReportQuery Apollo analytics metrics, dimensions, filters, and date ranges.Needs your own keyBilled to your own Apollo key
Search Apollo AccountsSearches for accounts within your existing Apollo.io database using various criteria; requires a paid plan and is limited to 50,000 records.Needs your own keyBilled to your own Apollo key
Search for CallsSearches for call records in Apollo.io using filters like date range, duration, direction (inbound/outgoing), users, contacts, purposes, outcomes, and keywords.Needs your own keyBilled to your own Apollo key
Search Apollo contactsSearches Apollo contacts using keywords, stage IDs (from 'List Contact Stages' action), or sorting (max 50,000 records; `sort_ascending` requires `sort_by_field`).Needs your own keyBilled to your own Apollo key
Search Apollo ConversationsSearch Apollo video meetings and dialer calls using record, participant, date, scorecard, sorting, and visibility filters.Needs your own keyBilled to your own Apollo key
Search outreach emailsTool to search for outreach emails sent through Apollo sequences.Needs your own keyBilled to your own Apollo key
Search sequencesSearch Apollo sequences, such as automated email campaigns, optionally filtering by full or partial name.Needs your own keyBilled to your own Apollo key
Search tasksSearches for tasks in Apollo.io using filters like keywords, date ranges (due, created, updated), priorities, types, assigned users, associated contacts/accounts, supporting sorting and pagination.Needs your own keyBilled to your own Apollo key
Send Email NowQueue an Apollo email for external sending; success means queued, not delivered.Needs your own keyBilled to your own Apollo key
Update an Apollo accountUpdates specified attributes of an existing account in Apollo.io.Needs your own keyBilled to your own Apollo key
Update account ownershipUpdates the ownership of multiple Apollo accounts to a specified user.Needs your own keyBilled to your own Apollo key
Update Apollo call recordTool to update an existing call record in Apollo.io.Needs your own keyBilled to your own Apollo key
Update Apollo contact detailsTool to update an existing contact's information in Apollo.Needs your own keyBilled to your own Apollo key
Update contact ownershipUpdates the ownership of specified Apollo contacts to a given Apollo user, who must be part of the same team.Needs your own keyBilled to your own Apollo key
Bulk update Apollo contactsTool to bulk update multiple Apollo contacts with a single API call.Needs your own keyBilled to your own Apollo key
Update contact stageUpdates the stage for one or more existing contacts in Apollo.io to a new valid contact stage, useful for managing sales funnel progression.Needs your own keyBilled to your own Apollo key
Update contact status in sequencePauses or marks a contact as finished in a designated Apollo sequence.Needs your own keyBilled to your own Apollo key
Update Apollo dealUpdates specified fields of an existing Apollo.io deal (opportunity), requiring a valid `opportunity_id`.Needs your own keyBilled to your own Apollo key
Update Apollo ListRename an Apollo list and optionally change its Book of Business status.Needs your own keyBilled to your own Apollo key
Update SequenceUpdate an Apollo sequence's settings, ownership, sharing, steps, and touches.Needs your own keyBilled to your own Apollo key
Update Apollo TaskUpdate editable details of an existing Apollo task.Needs your own keyBilled to your own Apollo key
View API Usage StatsFetches Apollo API usage statistics and rate limits for the connected team.Needs your own keyBilled to your own Apollo key
View Credit Usage StatsRead team balances by credit type for Apollo's current billing cycle.Needs your own keyBilled to your own Apollo key
Pricing

How you pay for Apollo

  • Your first $2 is freeIt's added to your Composio wallet when you turn on Instant.
  • You pay for each callYou pay Apollo's price with 0% markup, plus the regular Composio tool call charge.
  • Your own key comes firstIf you connect your own Apollo key, Composio uses it and doesn't charge Instant for those calls.
  • You control the costYou can ask your agent to check with you before each paid call, and you can turn Instant off at any time.
  • You can see each callYour wallet shows each call and what it cost.
  • When your balance runs outYou can add funds to your wallet on a Pro plan or connect your own key.
Help

Troubleshooting

  1. 1. OpenCode asks me for a Apollo API key

    You may have asked for something that needs your own key, like Activate Sequence, Add Contacts to Sequence, Add People to Prospects, Archive Sequence, Bulk update account stage, Complete Apollo Task and 57 more. Those tools don't run on Instant. For everything else, check that Instant is turned on in your Composio wallet, then ask again.

  2. 2. I can't see my free $2

    Open your wallet in the Composio dashboard and check that Instant is turned on. If the $2 still isn't there, email support@composio.dev from the address you signed up with.

  3. 3. A Apollo call failed with a balance error

    Your balance is empty. Add funds to your wallet on a Pro plan, or connect your own Apollo key, then try again.

FAQ

Frequently asked questions

Start with Apollo.It takes 30 seconds.

New accounts get a one-time $2 starter credit for Instant calls.Run Apollo from your agent with no Apollo key.

Get $2 starter credit