# Connect

> Choose how your terminal, coding agent or application reaches Corfedo, and who runs the model loop.

Source: https://docs.corfedo.ai/connect/

Corfedo works with your tools in two ways:

- **Code tools** return code and repository context to your own model. Your agent or application runs the loop. Use [MCP](https://docs.corfedo.ai/connect/mcp/), the [CLI](https://docs.corfedo.ai/connect/cli/) or an [AI framework](https://docs.corfedo.ai/connect/frameworks/).
- **Corfedo AI** searches the code and answers with citations, using a workspace AI profile and its AI budget. Use [MCP](https://docs.corfedo.ai/connect/mcp/tools/#ask-corfedo-ai), [CLI `ask`](https://docs.corfedo.ai/connect/cli/ask/), the [AI API](https://docs.corfedo.ai/connect/api/ai/) or an [AI framework](https://docs.corfedo.ai/connect/frameworks/).

- [MCP](https://docs.corfedo.ai/connect/mcp/): Add Corfedo to Claude Code, Cursor, VS Code, Codex or another coding agent.
- [CLI](https://docs.corfedo.ai/connect/cli/): Search, read and ask from your terminal and scripts.
- [AI frameworks](https://docs.corfedo.ai/connect/frameworks/): Microsoft.Extensions.AI, Vercel AI SDK, LangChain and Pydantic AI.
- [SDKs](https://docs.corfedo.ai/connect/sdks/dotnet/): The core .NET, TypeScript and Python clients.
- [HTTP API](https://docs.corfedo.ai/connect/api/): Search, read and ask over HTTP.
- [Authentication](https://docs.corfedo.ai/connect/authentication/): Choose between browser sign-in and an API key.
