Skip to content
Back to skills

Octocode Get Started

ASecurity

Load this skill first when setting up Octocode: install the CLI or bundled skills, connect an MCP client, sign in to GitHub and verify with a real call.

  • 971 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added December 1, 2026
ai-agentsnodegit

Works with

  • terminal
  • cli
  • mcp

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 4 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add bgauryy/octocode --skill octocode-get-started --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Octocode Get Started?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Octocode Get Started
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bgauryy-octocode-get-started/badge)](https://www.skillsdirectory.com/skills/bgauryy-octocode-get-started)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: octocode-get-started
description: "Load this skill first when setting up Octocode: install the CLI or bundled skills, connect an MCP client, sign in to GitHub and verify with a real call."
metadata:
  excluded-hosts: "octocode-code"
---

# Get started with Octocode

Identify the client, project and requested setup; ask when the client is unknown. Run only needed sections (CLI: terminal and GitHub login; MCP: tools inside a client). Full setup order: CLI, GitHub sign-in, MCP client, so the client's restart picks up the login; done when MCP step 3 returns the README line and `auth status --json` shows `verified`.

## Try the CLI

One package, `octocode-mcp`, is both the CLI (`octocode-mcp <command>`) and the MCP server (an MCP client runs it bare). The npm package needs Node.js 24.15 or later; the standalone native binary needs none, but an MCP entry from `install` still does (MCP step 2). From a project with a README, run:

```sh
npx -y octocode-mcp --version
npx -y octocode-mcp localFetch '{"queries":[{"path":"README.md","ranges":[{"startLine":1,"endLine":1}]}]}'
```

The reply should hold the README’s first line; local reads work before sign-in. For a global CLI, `npm install -g octocode-mcp`, then drop `npx -y`. [CLI guide](https://github.com/bgauryy/octocode/blob/main/docs/OCTOCODE_CLI.md)

## Sign in to GitHub

Code search and private repositories need a login. On the machine running Octocode, start it from an interactive terminal.

```sh
npx -y octocode-mcp auth login
npx -y octocode-mcp auth status --json
```

The user follows the [sign-in steps](https://github.com/bgauryy/octocode/blob/main/docs/AUTHENTICATION.md#oauth-device-login). Check for `verification: "verified"` and the expected `hostname` and `username`; a device login reports `tokenSource: "octocode-storage"`, which MCP shares when it uses the same Octocode home and GitHub host; a running MCP client sees a new login only after a restart. CI tokens, GitHub CLI accounts or Enterprise: [credential selection](references/configure.md#github-credential-selection).

## Connect an MCP client

1. `npx -y octocode-mcp install --list` shows each client ID and whether its Octocode entry exists (a plugin may supply it); check an existing one with `npx -y octocode-mcp install --ide <client-id> --check`.
2. If the entry is missing, run `npx -y octocode-mcp install --ide <client-id> --enable-local true` (`--scope workspace` for a project entry where supported; `--dry-run` previews). The entry starts the server through `npx` (`--method bunx` or `pnpm` instead), so the client needs Node.js 24.15 or later with that runner on its `PATH`; `--check` does not test that. Without Node, write the native entry by hand: `"command": "octocode-mcp"` with no `args` ([stdio configuration](references/configure.md#manual-mcp-configuration)); `--check` accepts it and warns when `octocode-mcp` is not on `PATH`. `--enable-local true` lists the tools that search and read code on this machine; without it the server lists the GitHub and package tools only. `--preset full|local|github` picks a whole tool set instead and overrides the other tool settings. For a client with no ID, use the [stdio configuration](references/configure.md#manual-mcp-configuration).
3. Restart the client, open the project, and ask **“Use Octocode to read the first line of README.md.”** It should call `localFetch` and return the CLI’s line. On failure, do not reinstall: no Octocode tools → rerun `--check`; GitHub tools but no `localFetch` → the entry lacks `OCTOCODE_ENABLE_LOCAL=true` or sets `OCTOCODE_TOOLS_PRESET=github` (rerun step 2 with `--force`, or with `--preset full`); then the client’s MCP log names the start error; a different line or missing file → set the server’s working directory or `WORKSPACE_ROOT` (stdio configuration), restart, ask again.

## Configure settings or add skills

| Need | Action | Check |
|---|---|---|
| Choose a tool | [First tool calls](references/tools-and-keys.md#choose-a-tool) | `npx -y octocode-mcp schema` or the client’s tool list |
| Change settings or enable tools | [Precedence](references/configure.md#configuration-and-folders), [optional tools](references/tools-and-keys.md#optional-tools); restart MCP after | `npx -y octocode-mcp config list` |
| Add a provider key | [Key setup](references/tools-and-keys.md#add-and-configure-keys); the user enters the secret on stdin | `npx -y octocode-mcp config check <KEY>` (exit 0 when set) |
| Install a bundled skill | `npx -y octocode-mcp skill list`, then `npx -y octocode-mcp skill install <name> --platform <platform> --project-dir .` (or `--global`) | `npx -y octocode-mcp skill check <name>` |

Report the interface, project and passing checks, or the failing command or tool, its error and the setup part it affects. Omit tokens and device codes.

Files in this skill

  • README.md10.2 KB
  • SKILL.md4.7 KB
  • references/configure.md3.3 KB
  • references/tools-and-keys.md2.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.