
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.
The AI-powered cheap copy of
thefuck- explains errors, fixes commands, and troubleshoots the terminal.
tf-ai is a CLI tool that uses a LLM to analyze your terminal commands and their output.
Run a command, fail, type fuck, and let AI give you it's insight.
# Install globally via npm
npm install -g tf-ai
# Or run directly
npx tf-ai --help
Set your API Key (Required)
export ANTHROPIC_API_KEY="sk-ant-..."
# OR
export OPENAI_API_KEY="sk-..."
Advanced Config (Optional)
Create ~/.tf-ai/config.json:
{
"model": "gpt-5.2",
"confirmBeforeRun": true,
"verbose": false
}
To use the fuck alias, run the setup command for your shell:
tf-ai --setup
Follow the instructions to add the function to your shell profile:
$PROFILE).bashrc) or Zsh (.zshrc)# 1. Mess up a command
PS> git pussh origin main
git: 'pussh' is not a git command.
# 2. Summon the AI
PS> fuck
# 3. Get help instantly
🤖 tf-ai
It looks like you made a typo. 'pussh' is not a valid git command.
💡Suggested command:
➜ git push origin main
[Enter] Run [e] Edit [Esc] Cancel
| Flag | Description |
|---|---|
fuck | Analyze the last command (default - doesn't re-run it) |
fuck -r | Re-run the last command to capture its output, then analyze |
Tip: Use
fuck -rwhen the error output is important for diagnosis. The default mode is faster and works well for typos and common mistakes.
You can also use it manually to analyze specific errors:
# Analyze a specific failure
tf-ai --command "npm install" --output "EBADENGINE Unsupported engine"
# Just get an explanation without fixes
tf-ai --command "ls -la" --explain
git clone https://github.com/yourusername/thefuckai.git
cd thefuckai
pnpm install
# Run locally
pnpm dev -- --command "echo test" --output "error"
MIT
FAQs
AI-powered terminal assistant that explains errors and suggests fixes
The npm package tf-ai receives a total of 9 weekly downloads. As such, tf-ai popularity was classified as not popular.
We found that tf-ai 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.