This is the usual definition of a compact space: A topological space is compact iff every open cover has a finite subcover.
It is possible to consider only covers by sets from a fixed base $\mathcal B$ instead of arbitrary cover. So we have the following result:
Claim. Let $\mathcal B$ be a base for $X$. Let $X$ be a space such that every open cover with sets from $\mathcal B$ has a finite subcover. Then $X$ is compact.
The same claim is true also for a subbase. In this case it is known as Alexander subbase theorem. The usual proof uses Zorn's Lemma and it cannot be proven in ZF alone. It is equivalent to the Boolean prime ideal theorem and the Ultrafilter lemma.1
If we only work with bases, the proof of the above claim is much more straightforward - still it uses Axiom of Choice:
Proof. Let $\mathcal U$ by any open cover of $X$. Let us take the set $\mathcal B'=\{B\in\mathcal B; (\exists U\in\mathcal U) B\subseteq U\}$, i.e., the set consisting of all basic set which lie entirely inside some set from the original open cover. The set $\mathcal B'$ is an open cover of $X$. (Indeed, for every $x\in X$ there is some $U\in\mathcal U$ such that $x\in U$. And, by the definition of base, there exists $B\in\mathcal B$ with $x\in B\subseteq U$.)
Since $\mathcal B'\subseteq\mathcal B$, there is an open subcover $\{B_1,\dots,B_n\}$ of $\mathcal B'$. Now for each $B_i$, $i=1,\dots,n$ we can choose some $U_i\in\mathcal U$ such that $B_i\subseteq U_i$. The set $\{U_1,\dots,U_n\}$ is a finite subcover of $\mathcal U$. Q.E.D
Question. Can the above claim be shown in ZF?
1I can add another reference if I find it, but at least this is claimed in some posts on this site, such as: Ultrafilter Lemma and Alexander subbase theorem and What is Alexander subbase theorem equivalent to?