Search G2X from your terminal and scripts. Install govcon, sign in with your G2X account and run your first searches.
govcon brings G2X, the intelligence layer for GovCon growth, to your terminal and scripts. You sign in with your G2X account in your browser, and results include links to the G2X records they come from.
GovCon CLI 0.3.4 is available on npm. You need Node.js 20.19.0 or later and a G2X account.
npm install -g govcongovcon --versionOr run it without installing:
npx govcon --helpgovcon logingovcon login opens your browser, and you sign in to G2X as you do on the web. govcon then keeps you signed in on this computer. govcon whoami shows the account you're signed in with, and govcon logout signs you out.
On a computer without a browser, such as over SSH:
govcon login --no-browserIt shows an address to open on any device. When you've signed in there, paste back the address your browser ends up on. Over SSH, or on a Linux computer without a display, govcon login does this on its own.
Search open federal opportunities.
govcon opportunities "cloud migration" --naics 541512,541519 --limit 8Search opportunities by the text inside their documents: SAM, SLED, DIBBS, SBIR/STTR.
govcon documents-search "zero trust architecture" --source sam,sledSearch federal contract awards.
govcon contracts "help desk" --filter naics=541512 --filter fiscal_year:=2025Find companies by name, UEI, or CAGE code.
govcon companies "Leidos"Search procurement forecasts: planned buys not yet solicited.
govcon forecasts "cloud hosting" --agency DHS,VA --fiscal-year 2027Then govcon history <uei> shows a company's contracting portfolio, and govcon read prints a whole solicitation document. Every command has --help. Every command that reads from G2X accepts --json.
Connect G2X to Claude Code, Cursor, or Codex:
govcon mcp add claudegovcon mcp add cursorgovcon mcp add codexgovcon mcp add sets up Cursor for you, and prints the one command to run for Claude Code or Codex. Your agent then gets G2X's research tools, with your sign-in from govcon login. Use the CLI with coding agents has the details and the agent skill.