opencode auth login
# Select "Kimi For Coding"
# Enter your API key (sk-kimi-...)Applied rationality for a coding agent. Defensive epistemology: minimize false beliefs, catch errors early, avoid compounding mistakes.
This is correct for code, where:
- Reality has hard edges (the compiler doesn't care about your intent)
- Mistakes compound (a wrong assumption propagates through everything built on it)
- The cost of being wrong exceeds the cost of being slow
| import { WarpGrepClient } from "@morphllm/morphsdk"; | |
| import { tool } from "@opencode-ai/plugin/tool"; | |
| import { promises as fs } from "fs"; | |
| import { resolve } from "path"; | |
| const z = tool.schema; | |
| const MAX_RETRIES = 3; | |
| const BASE_DELAY_MS = 250; | |
| const MAX_CONTEXTS = 20; |
Generated with LLM assistance on 2 Nov 2025 with minimal human verification.
Opencode plugins extend the functionality of the Opencode AI assistant by allowing you to add custom tools, authentication providers, event handlers, and hooks into the core system. This guide covers how to create, configure, and distribute plugins.
Source files:
| . |
As a security professional, it is important to conduct a thorough reconnaissance. With the increasing use of APIs nowadays, it has become paramount to keep access tokens and other API-related secrets secure in order to prevent leaks. However, despite technological advances, human error remains a factor, and many developers still unknowingly hardcode their API secrets into source code and commit them to public repositories. GitHub, being a widely popular platform for public code repositories, may inadvertently host such leaked secrets. To help identify these vulnerabilities, I have created a comprehensive search list using powerful search syntax that enables the search of thousands of leaked keys and secrets in a single search.
(path:*.{File_extension1} OR path:*.{File_extension-N}) AND ({Keyname1} OR {Keyname-N}) AND (({Signature/pattern1} OR {Signature/pattern-N}) AND ({PlatformTag1} OR {PlatformTag-N}))
**1.
| from dataclasses import dataclass, field | |
| from datetime import datetime | |
| from typing import Optional, TypeVar | |
| T = TypeVar("T") | |
| def required() -> T: | |
| f: T |
| import logging | |
| import inspect | |
| def verbose_function(dump_args: bool = True, dump_return: bool = False, dump_args_at_exit: bool = False): | |
| """ | |
| Decorator to print function call details. | |
| This can include: | |
| * input parameters names and effective values | |
| * output parameters (if they were modified by the function) |
