Skip to content

Coding Agents

Coding Agents

Use Famasi directly in your development environment with Claude Code or Codex. Get pharmacy access, search medications, and manage orders without leaving your terminal.

Available Agents

  • Claude Code — Anthropic’s terminal-based AI assistant
  • Codex — OpenAI’s terminal-based AI assistant

Claude Code

Claude Code gives you an AI coding assistant that can use Famasi tools directly.

Install

Terminal window
npx @famasi/agents@latest install claude-code

This creates:

  • .mcp.json — MCP server configuration
  • .claude/agents/famasi-provider.md — Agent instructions
  • .claude/commands/famasi-link-provider.md — Link command

Use

Terminal window
# Start Claude Code
claude
# Then ask naturally:
"Search for Amoxicillin 500mg"
"Create an order for customer +2348012345678"
"What's my wallet balance?"

How it works

Claude Code has an AI agent that understands Famasi’s tools. You ask in natural language, and the agent:

  1. Decides which tool to use
  2. Asks for any missing details
  3. Executes the API call
  4. Shows you the results

Codex

Codex is similar to Claude Code — it’s a local AI coding assistant.

Install

Terminal window
npx @famasi/agents@latest install codex

This creates:

  • .mcp.json — MCP server configuration
  • .famasi/skills/codex/famasi-provider/SKILL.md — Skill instructions
  • AGENTS.md — Agent configuration

Use

The same way as Claude Code — ask naturally and it uses Famasi tools.

Terminal window
# Start Codex
codex
# Then ask:
"Find nearby pharmacies with Panadol"
"Show me my recent orders"
"Update my provider profile"

Which one to choose?

FeatureClaude CodeCodex
DeveloperAnthropicOpenAI
FocusCode generationCode generation
Famasi integrationFullFull
Agent personaProvider specialistProvider specialist
Slash commandsYesNo

Use Claude Code if:

  • You prefer Anthropic’s models
  • You want slash commands
  • You use Claude for other tasks

Use Codex if:

  • You prefer OpenAI’s models
  • You’re already in the OpenAI ecosystem
  • You use Codex for other coding tasks

Setup

Both tools need provider authentication:

Terminal window
# Link your provider account
npx @famasi/agents@latest link provider --provider-id YOUR_PROVIDER_ID
# Check everything works
npx @famasi/agents@latest doctor

Next steps