# Try it in the browser

> Search your indexed code, open it in the code browser and ask Corfedo AI a question about it.

Source: https://docs.corfedo.ai/get-started/try-it-in-the-browser/

You run a search that returns results, read the code in the code browser and ask Corfedo AI a question about your repositories.

## Before you begin

- At least one repository shows **Searchable**, from [Add repositories](https://docs.corfedo.ai/get-started/add-repositories/).
- To ask questions, a credential for an AI provider, such as an Anthropic or OpenAI API key. [AI providers](https://docs.corfedo.ai/workspace/ai/providers/) lists every provider. Search and the code browser work without one.

## Search your code

### Run a search

Select **Code search** in the sidebar. Type a word or name that appears in your code, such as a function or class name, and press Enter.

### Preview a result

Results are files ranked by relevance, with the matching lines. Select a result to read the file beside the results. [Search filters and examples](https://docs.corfedo.ai/use/search/filters/) narrow a search by language, path or repository.

**Check:** the search returns files from your repository with the matching lines highlighted.

## Browse the code

Select **Repositories** in the sidebar and open a repository. Select the **Code** tab to browse its files and folders at the indexed commit.

**Check:** the file tree of your repository opens and a file shows its code.

## Ask Corfedo AI a question

Corfedo AI answers with an AI provider you add. Without one, the box on the home page says **AI is not configured for this workspace.** Select **Configure AI** next to it to start the steps below.

### Add a provider

Open **Settings** › **Providers** and select **Add provider**. Choose your provider, paste an API key and select **Save and test**.

### Create a profile

Open **Settings** › **Profiles** and select **Create profile**. Enter a **Name**, choose the **Provider** and a **Model**, and select **Create profile**. Members choose a profile when they ask a question.

### Ask

Select **Ask Corfedo AI** in the sidebar. In the box on the home page, ask about one of your repositories, for example "Where is the retry policy configured?". Send it.

**Check:** Corfedo AI answers, and the answer cites files and lines from your repository. Select a citation to open the code it refers to. [Ask Corfedo](https://docs.corfedo.ai/use/ask/) covers follow-up questions and sources.

You can also ask from the search box. Press Shift+Enter instead of Enter to ask Corfedo AI about your query. [Ask Corfedo](https://docs.corfedo.ai/use/ask/#ask-from-other-places) lists the other places you can ask from.

## Next step

[Connect a coding agent](https://docs.corfedo.ai/get-started/connect-a-coding-agent/) so it can search your code too.
