
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
A powerful CLI coding assistant powered by OpenRouter API. Get AI help with your coding tasks directly from the terminal.
# Navigate to your project directory
cd your-project
# Install dependencies
npm install
Copy the environment template:
cp .env.example .env
Get your OpenRouter API key from openrouter.ai
Add your API key to .env:
OPENROUTER_API_KEY=your_api_key_here
OPENROUTER_MODEL=anthropic/claude-3.5-sonnet
npm install -g .
# On Windows
npm run build
# Add the bin directory to your PATH
# On macOS/Linux
chmod +x bin/lamp.js
sudo ln -s $(pwd)/bin/lamp.js /usr/local/bin/lamp
Simply type lamp in your terminal:
lamp
help - Show available commandsclear - Clear the terminal screenread <filename> - Read and analyze a specific fileedit <filename> - Edit a file with AI suggestionssearch <query> - Search codebase for specific textopen <filename> - Open a file in your default editorexit or quit - Exit LampCodelamp> How can I improve the performance of this React component?
lamp> Write a function to validate email addresses in TypeScript
lamp> read package.json
lamp> edit app.js
# AI will help you modify the file with your instructions
lamp> search axios
# Find all occurrences of "axios" in your codebase
lamp> What does this error mean: TypeError: Cannot read property 'map' of undefined?
lamp> Create a todo list component with React hooks
You can change the AI model in your .env file:
# Claude models (recommended)
OPENROUTER_MODEL=anthropic/claude-3.5-sonnet
OPENROUTER_MODEL=anthropic/claude-3-opus
OPENROUTER_MODEL=anthropic/claude-3-haiku
# OpenAI models
OPENROUTER_MODEL=openai/gpt-4
OPENROUTER_MODEL=openai/gpt-3.5-turbo
# Other models available on OpenRouter
LampCode automatically analyzes your project files to provide context-aware assistance:
.js, .ts, .py, .java, etc.)"command not found"
npm link in the project directory"API key not found"
OPENROUTER_API_KEY is set in your .env file.env file is in your project root"Rate limit exceeded"
Permission denied
chmod +x bin/lamp.jsgit checkout -b feature/amazing-featuregit commit -m 'Add amazing feature'git push origin feature/amazing-featureThis project is licensed under the MIT License.
FAQs
A CLI coding assistant powered by OpenRouter API
The npm package lampcode receives a total of 6 weekly downloads. As such, lampcode popularity was classified as not popular.
We found that lampcode demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.