Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
docs(ax): agentic quickstart (#8324)
Adrian Kahali0eae55247c4b
diff --git a/docs/index.mdx b/docs/index.mdxindex f1eda3f251..93d9d7e44e 100644--- a/docs/index.mdx+++ b/docs/index.mdx@@ -5,7 +5,7 @@ description: "Learn how to use Infisical to manage secrets, certificates, and semode: custom----import { HomeHero, HomeButton, HomeSection, HomeGrid, HomeCard, HomeStack, HomeSteps, Mark } from "/snippets/home.jsx";+import { HomeHero, HomeButton, HomeSection, HomeGrid, HomeCard, HomeStack, HomeSteps, Mark, AGENT_PROMPT, PromptBlock } from "/snippets/home.jsx";<div className="ifx-home">@@ -19,16 +19,27 @@ import { HomeHero, HomeButton, HomeSection, HomeGrid, HomeCard, HomeStack, HomeS}aside={<HomeSteps- steps={[+ panels={[{- tabs: [- { label: "macOS", command: "brew install infisical/get-cli/infisical" },- { label: "Windows", command: "winget install infisical" },- { label: "Debian/Ubuntu", command: "curl -1sLf 'https://artifacts-cli.infisical.com/setup.deb.sh' | sudo -E bash && sudo apt-get update && sudo apt-get install -y infisical" },- { label: "npm", command: "npm install -g @infisical/cli" }- ]+ label: "AI prompt",+ content: (+ <PromptBlock text={AGENT_PROMPT} />+ )},- { label: "Inject your secrets.", href: "/documentation/platform/secrets-mgmt/quick-starts/deliver-first-secret" }+ {+ label: "CLI",+ steps: [+ {+ tabs: [+ { label: "macOS", command: "brew install infisical/get-cli/infisical" },+ { label: "Windows", command: "winget install infisical" },+ { label: "Debian/Ubuntu", command: "curl -1sLf 'https://artifacts-cli.infisical.com/setup.deb.sh' | sudo -E bash && sudo apt-get update && sudo apt-get install -y infisical" },+ { label: "npm", command: "npm install -g @infisical/cli" }+ ]+ },+ { label: "Inject your secrets.", href: "/documentation/platform/secrets-mgmt/quick-starts/deliver-first-secret" }+ ]+ }]}/>}diff --git a/docs/snippets/home.jsx b/docs/snippets/home.jsxindex 78a81940bb..8952b2ee65 100644--- a/docs/snippets/home.jsx+++ b/docs/snippets/home.jsx@@ -1,3 +1,10 @@+export const AGENT_PROMPT = [+ "Help me get set up with Infisical for secrets management. Do the following:",+ "1. Install the Infisical setup skill with `npx skills add Infisical/ai-skills --skill infisical-setup --agent <agent> -y`, replacing `<agent>` with your own name, such as `claude-code`, `cursor`, or `codex`. If the install fails, stop and tell me instead of installing a different skill.",+ "2. Follow the `infisical-setup` skill to install the Infisical CLI, connect this project to Infisical, and import the secrets from any `.env` files here into it. Don't open or read the files yourself.",+ "3. Suggest the most relevant next steps."+].join("\n\n");+export const HomeHero = ({ title, description, aside, children }) => (<div className="ifx-home__hero"><div className="ifx-home__hero-main">@@ -9,7 +16,8 @@ export const HomeHero = ({ title, description, aside, children }) => (</div>);-export const HomeSteps = ({ steps }) => {+export const HomeSteps = ({ steps, panels }) => {+ const [panel, setPanel] = useState(0);const [tab, setTab] = useState(0);const [copied, setCopied] = useState(null);@@ -19,8 +27,30 @@ export const HomeSteps = ({ steps }) => {setTimeout(() => setCopied(null), 1500);};+ // outer panels reset the inner OS-picker state so a switch from one panel to another+ // doesn't leave the second panel showing the last-clicked tab index of the first+ const switchPanel = (i) => {+ setPanel(i);+ setTab(0);+ };++ const activePanel = panels ? panels[panel] : null;+ const activeSteps = activePanel ? activePanel.steps : steps;++ const onPanelKeyDown = (event) => {+ const offset = { ArrowRight: 1, ArrowLeft: -1 }[event.key];+ if (!offset) return;+ event.preventDefault();+ const next = (panel + offset + panels.length) % panels.length;+ switchPanel(next);+ document.getElementById(`ifx-steps-tab-${next}`)?.focus();+ };+const commandRow = (command) => (- <div key={command} className="ifx-steps__cmd">+ <div+ key={command}+ className={`ifx-steps__cmd${command.includes("\n") ? " ifx-steps__cmd--block" : ""}`}+ ><code className="ifx-steps__code">{command}</code><buttontype="button"@@ -64,8 +94,35 @@ export const HomeSteps = ({ steps }) => {return (<div className="ifx-steps">+ {panels ? (+ <div className="ifx-steps__panels" role="tablist" onKeyDown={onPanelKeyDown}>+ {panels.map((p, i) => (+ <button+ key={p.label}+ id={`ifx-steps-tab-${i}`}+ type="button"+ role="tab"+ aria-selected={i === panel}+ aria-controls="ifx-steps-tabpanel"+ tabIndex={i === panel ? 0 : -1}+ className={`ifx-steps__panel${i === panel ? " ifx-steps__panel--active" : ""}`}+ onClick={() => switchPanel(i)}+ >+ {p.label}+ </button>+ ))}+ </div>+ ) : null}+ <div+ {...(panels+ ? { id: "ifx-steps-tabpanel", role: "tabpanel", "aria-labelledby": `ifx-steps-tab-${panel}` }+ : {})}+ >+ {activePanel && activePanel.content ? (+ <div className="ifx-steps__prose">{activePanel.content}</div>+ ) : (<ol className="ifx-steps__list">- {steps.map((step, i) => (+ {activeSteps.map((step, i) => (<li key={i} className="ifx-steps__item"><span className="ifx-steps__num">{i + 1}</span>{step.label ? (@@ -104,6 +161,97 @@ export const HomeSteps = ({ steps }) => {</li>))}</ol>+ )}+ </div>+ </div>+ );+};++// PromptBlock renders a copyable AI-agent prompt as prose: paragraphs separated by+// blank lines, backticked segments as inline code, and a copy button in the corner.+// The copied payload is the raw markdown source (with backticks intact) so pasting+// into an agent preserves the code fencing.+export const PromptBlock = ({ text }) => {+ const [status, setStatus] = useState(null);+ const copy = async () => {+ try {+ await navigator.clipboard.writeText(text);+ setStatus("copied");+ } catch {+ setStatus("failed");+ }+ setTimeout(() => setStatus(null), 1500);+ };+ const paragraphs = text.split("\n\n");+ return (+ <div className="ifx-prompt">+ <div className="ifx-prompt__body">+ {paragraphs.map((paragraph, i) => (+ <p key={i} className="ifx-prompt__p">+ {paragraph.split(/(`[^`]+`)/g).map((segment, j) =>+ segment.startsWith("`") && segment.endsWith("`") ? (+ <code key={j} className="ifx-prompt__code">+ {segment.slice(1, -1)}+ </code>+ ) : (+ segment+ )+ )}+ </p>+ ))}+ </div>+ <button+ type="button"+ className="ifx-prompt__copy"+ aria-label={status === "failed" ? "Couldn't copy the prompt" : "Copy prompt"}+ title={status === "failed" ? "Couldn't copy. Select the text and copy it manually." : undefined}+ onClick={copy}+ >+ {status === "failed" ? (+ <svg+ width="14"+ height="14"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ aria-hidden="true"+ >+ <path d="M18 6 6 18M6 6l12 12" />+ </svg>+ ) : status === "copied" ? (+ <svg+ width="14"+ height="14"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ aria-hidden="true"+ >+ <path d="M20 6 9 17l-5-5" />+ </svg>+ ) : (+ <svg+ width="14"+ height="14"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ aria-hidden="true"+ >+ <rect width="14" height="14" x="8" y="8" rx="2" ry="2" />+ <path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" />+ </svg>+ )}+ </button></div>);};diff --git a/docs/style.css b/docs/style.cssindex 7e1c33bf03..386e21dc9e 100644--- a/docs/style.css+++ b/docs/style.css@@ -350,9 +350,150 @@ html.dark[data-current-path="/"] #navbar .nav-tabs-item[data-active="true"]:hovemargin-bottom: 0;}+.ifx-steps__panels {+ display: flex;+ gap: 1.25rem;+ margin-bottom: 1rem;+ border-bottom: 1px solid #ebebeb;+}++.ifx-steps__panel {+ padding: 0 0 0.5rem;+ border: 0;+ background: none;+ font-size: 0.8125rem;+ color: #6f6f6f;+ cursor: pointer;+ border-bottom: 1px solid transparent;+ margin-bottom: -1px;+ transition: color 0.2s, border-color 0.2s;+}++.ifx-steps__panel:hover {+ color: #171718;+}++.ifx-steps__panel--active {+ color: #171718;+ border-bottom-color: #171718;+}++.dark .ifx-steps__panels {+ border-bottom-color: rgba(255, 255, 255, 0.1);+}++.dark .ifx-steps__panel:hover,+.dark .ifx-steps__panel--active {+ color: #f4f4f4;+}++.dark .ifx-steps__panel--active {+ border-bottom-color: #f4f4f4;+}++.ifx-steps__prose {+ display: flex;+ flex-direction: column;+ height: 11rem;+ font-size: 0.9375rem;+ color: #171718;+ line-height: 1.55;+}++.ifx-prompt {+ position: relative;+ display: flex;+ flex-direction: column;+ flex: 1;+ min-height: 0;+ padding: 0.75rem 2.5rem 0.75rem 0.875rem;+ background-color: #fbfbfa;+ border: 1px solid #ebebeb;+ border-radius: 6px;+ font-size: 0.8125rem;+ line-height: 1.55;+ color: #26272b;+}++.ifx-prompt__body {+ flex: 1;+ min-height: 0;+ overflow-y: auto;+}++.ifx-prompt__p {+ margin: 0 0 0.5rem;+}++.ifx-prompt__p:last-child {+ margin-bottom: 0;+}++.ifx-prompt__code {+ padding: 0.05rem 0.3rem;+ border-radius: 3px;+ background-color: #ebebeb;+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;+ font-size: 0.72rem;+ color: #171718;+}++.ifx-prompt__copy {+ position: absolute;+ top: 0;+ right: 0;+ display: flex;+ align-items: center;+ justify-content: center;+ width: 2rem;+ height: 2rem;+ padding: 0;+ border: 0;+ border-bottom-left-radius: 4px;+ background-color: rgba(251, 251, 250, 0.95);+ color: #6f6f6f;+ cursor: pointer;+ transition: color 0.2s, background-color 0.2s;+}++.ifx-prompt__copy:hover {+ color: #171718;+ background-color: #f4f4f4;+}++.dark .ifx-prompt {+ background-color: rgba(255, 255, 255, 0.03);+ border-color: rgba(255, 255, 255, 0.1);+ color: #dfdfdf;+}++.dark .ifx-prompt__code {+ background-color: rgba(255, 255, 255, 0.08);+ color: #f4f4f4;+}++.dark .ifx-prompt__copy {+ background-color: rgba(23, 23, 24, 0.95);+ color: #adaeb0;+}++.dark .ifx-prompt__copy:hover {+ color: #f4f4f4;+ background-color: rgba(255, 255, 255, 0.06);+}++.ifx-steps__prose p {+ margin: 0 0 0.625rem;+}++.dark .ifx-steps__prose {+ color: #dfdfdf;+}+.ifx-steps__list {margin: 0;padding: 0;+ min-height: 11rem;list-style: none;}@@ -457,6 +598,35 @@ a.ifx-steps__label:hover {border: 1px solid var(--ifx-line);}+.ifx-steps__cmd--block {+ position: relative;+}++.ifx-steps__cmd--block .ifx-steps__code {+ max-height: 6rem;+ overflow-y: auto;+ white-space: pre-wrap;+ word-break: break-word;+ padding-right: 2.5rem;+}++.ifx-steps__cmd--block .ifx-steps__copy {+ position: absolute;+ top: 0;+ right: 0;+ width: 2rem;+ height: 2rem;+ border-left: 0;+ border-bottom: 1px solid #ebebeb;+ border-bottom-left-radius: 4px;+ background-color: rgba(251, 251, 250, 0.92);+}++.dark .ifx-steps__cmd--block .ifx-steps__copy {+ background-color: rgba(23, 23, 24, 0.92);+ border-bottom-color: rgba(255, 255, 255, 0.12);+}+.ifx-steps__code {flex: 1;min-width: 0;@@ -797,12 +967,12 @@ a.ifx-card__title:hover .ifx-card__chevron {.ifx-home__hero {grid-template-columns: minmax(0, 1fr) minmax(0, 27rem);column-gap: 5rem;- align-items: center;+ align-items: start;padding: 1.5rem 0;}.ifx-home__hero-aside {- align-self: stretch;+ padding-top: 1.25rem;}.ifx-stack {