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
npx @famasi/agents@latest install claude-codeThis creates:
.mcp.json— MCP server configuration.claude/agents/famasi-provider.md— Agent instructions.claude/commands/famasi-link-provider.md— Link command
Use
# Start Claude Codeclaude
# 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:
- Decides which tool to use
- Asks for any missing details
- Executes the API call
- Shows you the results
Codex
Codex is similar to Claude Code — it’s a local AI coding assistant.
Install
npx @famasi/agents@latest install codexThis creates:
.mcp.json— MCP server configuration.famasi/skills/codex/famasi-provider/SKILL.md— Skill instructionsAGENTS.md— Agent configuration
Use
The same way as Claude Code — ask naturally and it uses Famasi tools.
# Start Codexcodex
# Then ask:"Find nearby pharmacies with Panadol""Show me my recent orders""Update my provider profile"Which one to choose?
| Feature | Claude Code | Codex |
|---|---|---|
| Developer | Anthropic | OpenAI |
| Focus | Code generation | Code generation |
| Famasi integration | Full | Full |
| Agent persona | Provider specialist | Provider specialist |
| Slash commands | Yes | No |
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:
# Link your provider accountnpx @famasi/agents@latest link provider --provider-id YOUR_PROVIDER_ID
# Check everything worksnpx @famasi/agents@latest doctorNext steps
- Individual Tools — What you can do as an individual
- Provider Tools — What you can do as a provider
- Troubleshooting — Common issues